MCPcopy Create free account
hub / github.com/emwalker/digraph / topic_search

Function topic_search

backend/tests/git/search.rs:197–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 //
196 #[test]
197 fn topic_search() {
198 let f = Fixtures::copy("simple");
199
200 let root = ExternalId::root_topic();
201 let climate_change = f.find_topic("Climate change").unwrap();
202 let query = format!("in:{climate_change}");
203
204 let matches = search(&f, &root, &query, true);
205 assert_eq!(count(Kind::Topic, &matches), 2);
206 assert_eq!(count(Kind::Link, &matches), 3);
207 }
208
209 #[test]
210 fn combined_search() {

Callers

nothing calls this directly

Calls 2

searchFunction · 0.85
find_topicMethod · 0.80

Tested by

no test coverage detected