Skip to content

Commit 63d8937

Browse files
authored
Merge pull request #166 from codellm-devkit/fix/slicing-fixture-l2
fix(test): build the slicing fixture at level 2
2 parents e8f8bd1 + 928285d commit 63d8937

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/test_dataflow_slicing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
def ir(tmp_path_factory):
2121
cache = tmp_path_factory.mktemp("dataflow-slice-cache")
2222
options = AnalysisOptions(
23-
input=FIXTURE, analysis_level=1, no_venv=True, cache_dir=cache
23+
# Level 2: the SDG builder resolves callsites from L2-backfilled body
24+
# callees (deterministic); at level 1 it would fall back to Jedi's
25+
# cache-sensitive side channel (same fragility fixed for test_dataflow_sdg).
26+
input=FIXTURE, analysis_level=2, no_venv=True, cache_dir=cache
2427
)
2528
with Codeanalyzer(options) as analyzer:
2629
return build_program_graphs(analyzer.analyze().application)

0 commit comments

Comments
 (0)