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

Method _seed_data

tests/test_postprocessing.py:31–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 Path(self.tmp.name).unlink(missing_ok=True)
30
31 def _seed_data(self):
32 self.store.upsert_node(
33 NodeInfo(
34 kind="File",
35 name="/repo/app.py",
36 file_path="/repo/app.py",
37 line_start=1,
38 line_end=50,
39 language="python",
40 )
41 )
42 self.store.upsert_node(
43 NodeInfo(
44 kind="Class",
45 name="Service",
46 file_path="/repo/app.py",
47 line_start=5,
48 line_end=40,
49 language="python",
50 )
51 )
52 self.store.upsert_node(
53 NodeInfo(
54 kind="Function",
55 name="handle",
56 file_path="/repo/app.py",
57 line_start=10,
58 line_end=20,
59 language="python",
60 parent_name="Service",
61 params="request",
62 return_type="Response",
63 )
64 )
65 self.store.upsert_node(
66 NodeInfo(
67 kind="Function",
68 name="process",
69 file_path="/repo/app.py",
70 line_start=25,
71 line_end=35,
72 language="python",
73 )
74 )
75 self.store.upsert_node(
76 NodeInfo(
77 kind="Test",
78 name="test_handle",
79 file_path="/repo/test_app.py",
80 line_start=1,
81 line_end=10,
82 language="python",
83 is_test=True,
84 )
85 )
86
87 self.store.upsert_edge(
88 EdgeInfo(

Callers 1

setup_methodMethod · 0.95

Calls 5

NodeInfoClass · 0.90
EdgeInfoClass · 0.90
upsert_nodeMethod · 0.80
upsert_edgeMethod · 0.80
commitMethod · 0.80

Tested by

no test coverage detected