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

Function combined_query

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

Source from the content-addressed store, hash-verified

637
638 #[test]
639 fn combined_query() {
640 let s = Search::parse("in:e76a690f-2eb2-45a0-9cbc-5e7d76f92851 a b").unwrap();
641 assert_eq!(
642 s.normalized,
643 Phrase::parse("in:e76a690f-2eb2-45a0-9cbc-5e7d76f92851 a b"),
644 );
645 assert_eq!(s.tokens.len(), 0);
646 assert_eq!(s.topic_specs.len(), 1);
647 assert_eq!(
648 *s.topic_specs.iter().next().unwrap(),
649 SearchTopicSpec::parse("in:e76a690f-2eb2-45a0-9cbc-5e7d76f92851").unwrap()
650 );
651 }
652
653 #[test]
654 fn bad_id() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected