(self)
| 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()) |
nothing calls this directly
no test coverage detected