mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +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
478 B
Plaintext
Generated
15 lines
478 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(MatchGuard x, string hasCondition__label, string hasCondition) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
hasCondition__label = "hasCondition:" and
|
|
if x.hasCondition() then hasCondition = "yes" else hasCondition = "no"
|
|
}
|
|
|
|
query predicate getCondition(MatchGuard x, Expr getCondition) {
|
|
toBeTested(x) and not x.isUnknown() and getCondition = x.getCondition()
|
|
}
|