MCPcopy Index your code
hub / github.com/tirth8205/code-review-graph / test_remove_file_data

Method test_remove_file_data

tests/test_graph.py:86–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 assert edges[0].target_qualified == "/test/file.py::func_b"
85
86 def test_remove_file_data(self):
87 node = self._make_file_node()
88 func = self._make_func_node()
89 self.store.upsert_node(node)
90 self.store.upsert_node(func)
91 self.store.commit()
92
93 self.store.remove_file_data("/test/file.py")
94 self.store.commit()
95
96 assert self.store.get_node("/test/file.py") is None
97 assert self.store.get_node("/test/file.py::my_func") is None
98
99 def test_store_file_nodes_edges(self):
100 nodes = [self._make_file_node(), self._make_func_node()]

Callers

nothing calls this directly

Calls 6

_make_file_nodeMethod · 0.95
_make_func_nodeMethod · 0.95
upsert_nodeMethod · 0.80
commitMethod · 0.80
remove_file_dataMethod · 0.80
get_nodeMethod · 0.80

Tested by

no test coverage detected