Skip to content

Commit 1bf8d89

Browse files
lamwassisinha108
andauthored
Update tests/analysis/go/test_go_analysis.py
Co-authored-by: Saurabh Sinha <sinha108@gmail.com>
1 parent e9d9669 commit 1bf8d89

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎tests/analysis/go/test_go_analysis.py‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
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

1413
import json

0 commit comments

Comments
 (0)