MCPcopy
hub / github.com/tirth8205/code-review-graph / store_with_data

Function store_with_data

tests/test_visualization.py:12–109  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

10
11@pytest.fixture
12def store_with_data(tmp_path):
13 db_path = tmp_path / "test.db"
14 store = GraphStore(db_path)
15 file_node = NodeInfo(
16 kind="File",
17 name="auth.py",
18 file_path="src/auth.py",
19 line_start=1,
20 line_end=50,
21 language="python",
22 parent_name=None,
23 params=None,
24 return_type=None,
25 modifiers=None,
26 is_test=False,
27 extra={},
28 )
29 class_node = NodeInfo(
30 kind="Class",
31 name="AuthService",
32 file_path="src/auth.py",
33 line_start=5,
34 line_end=45,
35 language="python",
36 parent_name=None,
37 params=None,
38 return_type=None,
39 modifiers=None,
40 is_test=False,
41 extra={},
42 )
43 func_node = NodeInfo(
44 kind="Function",
45 name="login",
46 file_path="src/auth.py",
47 line_start=10,
48 line_end=20,
49 language="python",
50 parent_name="AuthService",
51 params="username, password",
52 return_type="bool",
53 modifiers=None,
54 is_test=False,
55 extra={},
56 )
57 test_file = NodeInfo(
58 kind="File",
59 name="test_auth.py",
60 file_path="tests/test_auth.py",
61 line_start=1,
62 line_end=10,
63 language="python",
64 parent_name=None,
65 params=None,
66 return_type=None,
67 modifiers=None,
68 is_test=False,
69 extra={},

Callers

nothing calls this directly

Calls 6

upsert_nodeMethod · 0.95
upsert_edgeMethod · 0.95
commitMethod · 0.95
GraphStoreClass · 0.90
NodeInfoClass · 0.90
EdgeInfoClass · 0.90

Tested by

no test coverage detected