mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
The base source is in basic-overlay-eval/orig_src, the overlay source is in basic-full-eval. We run two tests: a full evaluation test in basic-full-eval, and an overlay evaluation test in basic-overlay-eval. The test source and expected results are the SAME, due to the .qlref, meaning we expect the same results for full and overlay evaluation.
20 lines
538 B
Plaintext
20 lines
538 B
Plaintext
import python
|
|
|
|
query predicate testStringLiterals(StringLiteral l, string text) { l.getText() = text }
|
|
|
|
query predicate testModules(Module m) { any() }
|
|
|
|
query predicate testFunctions(Function f) { any() }
|
|
|
|
query predicate testClasses(Class c) { any() }
|
|
|
|
query predicate testLocations(Location l) { any() }
|
|
|
|
query predicate testFiles(File f) { any() }
|
|
|
|
query predicate testCfgNodes(ControlFlowNode n) { any() }
|
|
|
|
query predicate testSsaVars(SsaVariable var) { any() }
|
|
|
|
query predicate testVars(Variable var, Scope s) { s = var.getScope() }
|