MCPcopy
hub / github.com/zakirkun/deep-eye / test_search_basic

Method test_search_basic

tests/test_rag_index.py:113–120  ·  view source on GitHub ↗
(self, synthetic_cve_db, rag_config)

Source from the content-addressed store, hash-verified

111
112class TestSearch:
113 def test_search_basic(self, synthetic_cve_db, rag_config):
114 rag = CVERagIndex(rag_config)
115 rag.build(synthetic_cve_db, interactive=False)
116
117 hits = rag.search("log4j JNDI remote code execution")
118 assert len(hits) > 0
119 assert hits[0]["cve_id"] == "CVE-2021-44228"
120 assert hits[0]["score"] > 0
121
122 def test_search_struts(self, synthetic_cve_db, rag_config):
123 rag = CVERagIndex(rag_config)

Callers

nothing calls this directly

Calls 3

buildMethod · 0.95
searchMethod · 0.95
CVERagIndexClass · 0.90

Tested by

no test coverage detected