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

Function simple_search

backend/src/git/search.rs:565–570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563
564 #[test]
565 fn simple_search() {
566 let s = Search::parse("a b aa bb").unwrap();
567 assert_eq!(s.normalized, Phrase::parse("a b aa bb"));
568 assert_eq!(s.tokens, phrases(&["aa", "bb"]));
569 assert_eq!(s.topic_specs.len(), 0);
570 }
571
572 #[test]
573 fn punctuation() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected