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

Method test_upsert_method_node

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

Source from the content-addressed store, hash-verified

59 assert result.name == "my_func"
60
61 def test_upsert_method_node(self):
62 method = self._make_func_node(name="do_thing", parent="MyClass")
63 self.store.upsert_node(method)
64 self.store.commit()
65
66 result = self.store.get_node("/test/file.py::MyClass.do_thing")
67 assert result is not None
68 assert result.parent_name == "MyClass"
69
70 def test_upsert_edge(self):
71 edge = EdgeInfo(

Callers

nothing calls this directly

Calls 4

_make_func_nodeMethod · 0.95
upsert_nodeMethod · 0.80
commitMethod · 0.80
get_nodeMethod · 0.80

Tested by

no test coverage detected