mirror of
https://github.com/github/codeql.git
synced 2026-05-30 02:51:24 +02:00
Library-test compile fixes after the shared-CFG migration: - PointsTo/global, PointsTo/local: use `f.getNode() = s.getValue()` instead of `s.getValue().getAFlowNode() = f` (the new CFG does not surface getAFlowNode on AST nodes). - PointsTo/new/ImpliesDataflow: bridge new Cfg::ControlFlowNode to the legacy ControlFlowNodeWithPointsTo via AST identity. - frameworks/aiohttp + frameworks/modeling-example: qualify CallNode / NameNode / AttrNode casts with Cfg:: now that those names live in the new CFG facade. Rebless 4 expected files for toString-only differences (renamed CFG positions like 'CFG node for foo' vs 'foo' — no semantic change): ImpliesDataflow, EnclosingCallable, NaiveModel, ProperModel. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Dataflow, points-to, call-graph and type-inference tests.
Since dataflow, points-to, call-graph and type-inference are all interlinked it makes sense to test them together.
The test code.
The test code is all under the code/ subdirectory and all test files are named \w_name, supporting
files do have an underscore as their second character.
This allows tests to be applied to a subset of the test data and test/data combinations to be turned on/off easily for debugging.
Be aware that here are two __init__.py, so the results are interleaved.