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

Method test_upsert_and_get_node

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

Source from the content-addressed store, hash-verified

39 )
40
41 def test_upsert_and_get_node(self):
42 node = self._make_file_node()
43 self.store.upsert_node(node)
44 self.store.commit()
45
46 result = self.store.get_node("/test/file.py")
47 assert result is not None
48 assert result.kind == "File"
49 assert result.name == "/test/file.py"
50
51 def test_upsert_function_node(self):
52 func = self._make_func_node()

Callers

nothing calls this directly

Calls 4

_make_file_nodeMethod · 0.95
upsert_nodeMethod · 0.80
commitMethod · 0.80
get_nodeMethod · 0.80

Tested by

no test coverage detected