Files
codeql/rust/ql/test/extractor-tests/generated/ConstArg/ConstArg.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
419 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(ConstArg x, string hasExpr__label, string hasExpr) {
toBeTested(x) and
not x.isUnknown() and
hasExpr__label = "hasExpr:" and
if x.hasExpr() then hasExpr = "yes" else hasExpr = "no"
}
query predicate getExpr(ConstArg x, Expr getExpr) {
toBeTested(x) and not x.isUnknown() and getExpr = x.getExpr()
}