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

Method test_search_nodes

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

Source from the content-addressed store, hash-verified

177 assert self.store.get_node("/test/b.py") is not None
178
179 def test_search_nodes(self):
180 self.store.upsert_node(self._make_func_node("authenticate"))
181 self.store.upsert_node(self._make_func_node("authorize"))
182 self.store.upsert_node(self._make_func_node("process"))
183 self.store.commit()
184
185 results = self.store.search_nodes("auth")
186 names = {r.name for r in results}
187 assert "authenticate" in names
188 assert "authorize" in names
189 assert "process" not in names
190
191 def test_get_stats(self):
192 self.store.upsert_node(self._make_file_node())

Callers

nothing calls this directly

Calls 4

_make_func_nodeMethod · 0.95
upsert_nodeMethod · 0.80
commitMethod · 0.80
search_nodesMethod · 0.80

Tested by

no test coverage detected