Python: Post-processing query for inline test expectations

This commit is contained in:
Tom Hvitved
2024-09-23 14:20:28 +02:00
parent 4750b0de94
commit e5f2bbb6ec
7 changed files with 46 additions and 21 deletions

View File

@@ -0,0 +1,12 @@
private import python as PY
private import codeql.util.test.InlineExpectationsTest
module Impl implements InlineExpectationsTestSig {
/**
* A class representing line comments in Python. As this is the only form of comment Python
* permits, we simply reuse the `Comment` class.
*/
class ExpectationComment = PY::Comment;
class Location = PY::Location;
}