mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
22 lines
687 B
Plaintext
22 lines
687 B
Plaintext
/**
|
|
* @kind test-postprocess
|
|
*/
|
|
|
|
private import python
|
|
private import codeql.util.test.InlineExpectationsTest as T
|
|
private import internal.InlineExpectationsTestImpl
|
|
import T::TestPostProcessing
|
|
import T::TestPostProcessing::Make<Impl, Input>
|
|
|
|
private module Input implements T::TestPostProcessing::InputSig<Impl> {
|
|
string getRelativeUrl(Location location) {
|
|
exists(File f, int startline, int startcolumn, int endline, int endcolumn |
|
|
location.hasLocationInfo(_, startline, startcolumn, endline, endcolumn) and
|
|
f = location.getFile()
|
|
|
|
|
result =
|
|
f.getRelativePath() + ":" + startline + ":" + startcolumn + ":" + endline + ":" + endcolumn
|
|
)
|
|
}
|
|
}
|