mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
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.
15 lines
419 B
Plaintext
Generated
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()
|
|
}
|