File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Tests for the Go analysis facade with the cango subprocess mocked — no binary, no Neo4j.
22
3- Two corpora, both driven through the mocked subprocess (which writes the payload into the cache dir
4- exactly as cango would at ``-o``):
5-
6- * ``fixture_analysis.json`` — a tiny hand-built v2 payload (one module/struct/method/func/edge). The
7- deterministic level/cache/capture regression tests use it because they mutate ``max_level`` and the
8- call graph to simulate L1-vs-L2 generations.
9- * ``tests/resources/go/analysis.json`` — the committed real ``can://go/litestream`` corpus (55
10- modules, 959 edges). The ``litestream_facade`` fixture runs the whole accessor surface over it, so
11- callers/callees/source are proven against genuine cango output, not a one-edge toy.
3+ One corpus, driven through the mocked subprocess (which writes the payload into the cache dir exactly
4+ as cango would at ``-o``): ``tests/resources/go/analysis.json``, the committed real
5+ ``can://go/litestream`` corpus (55 modules, 959 edges).
6+
7+ * The deterministic level/cache/capture regression tests mutate its ``max_level`` and call graph to
8+ simulate L1-vs-L2 generations.
9+ * ``go_analysis`` runs the basic accessor smoke tests over it, and ``litestream_facade`` runs the
10+ whole accessor surface, so callers/callees/source are proven against genuine cango output.
1211"""
1312
1413import json
You can’t perform that action at this time.
0 commit comments