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

Function url_search

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

Source from the content-addressed store, hash-verified

266
267 #[test]
268 fn url_search() {
269 let f = Fixtures::copy("simple");
270 let root = ExternalId::root_topic();
271
272 let matches = search(
273 &f,
274 &root,
275 "https://en.wikipedia.org/wiki/Climate_change",
276 true,
277 );
278 assert_eq!(count(Kind::Topic, &matches), 0);
279 assert_eq!(count(Kind::Link, &matches), 1);
280 }
281
282 #[test]
283 fn search_works_across_prefixes() {

Callers

nothing calls this directly

Calls 1

searchFunction · 0.85

Tested by

no test coverage detected