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

Method test_upsert_function_node

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

Source from the content-addressed store, hash-verified

49 assert result.name == "/test/file.py"
50
51 def test_upsert_function_node(self):
52 func = self._make_func_node()
53 self.store.upsert_node(func)
54 self.store.commit()
55
56 result = self.store.get_node("/test/file.py::my_func")
57 assert result is not None
58 assert result.kind == "Function"
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")

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