Files
codeql/rust/ql/test/extractor-tests/generated/Comment/Comment.ql
Paolo Tranquilli 6bbf1e3bc1 Codegen: use one generated test file per directory
This collapses all generated test QL sources into a single one per
directory, using query predicates to run the different tests.

This should improve the time required to run generated tests.
2025-06-25 11:44:54 +02:00

15 lines
383 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(
Comment x, string getParent__label, AstNode getParent, string getText__label, string getText
) {
toBeTested(x) and
not x.isUnknown() and
getParent__label = "getParent:" and
getParent = x.getParent() and
getText__label = "getText:" and
getText = x.getText()
}