Skip to content

Commit fc542a0

Browse files
d10cCopilot
andcommitted
Tag the inline-expectations test queries as inline-expectation-test
codeql test run --learn recognises a postprocess query as an inline-expectation test, and so may rewrite the inline `// $ ...` comments in its source, by the `@tags inline-expectation-test` on the query. Add that tag to every language's InlineExpectationsTestQuery.ql so their tests are learnable; without it --learn declines to edit their source and fails, since it cannot group the query with its siblings into a shared-source cohort. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1adfa307-c48e-43f5-94e3-8286e4a8c083
1 parent dfdfcd0 commit fc542a0

11 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎cpp/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import cpp

‎csharp/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import csharp

‎go/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import go

‎java/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import java

‎javascript/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import javascript

‎python/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import python

‎ql/ql/src/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import ql

‎ruby/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import ruby

‎rust/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import rust

‎swift/ql/lib/utils/test/InlineExpectationsTestQuery.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @kind test-postprocess
3+
* @tags inline-expectation-test
34
*/
45

56
private import swift

0 commit comments

Comments
 (0)