MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_and_two_terms

Function parse_and_two_terms

nodedb-sql/src/functions/fts_ops/tsquery_parser.rs:199–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198 #[test]
199 fn parse_and_two_terms() {
200 let q = parse_tsquery("rust & lang").unwrap();
201 assert_eq!(
202 q,
203 FtsQuery::And(vec![
204 FtsQuery::Plain {
205 text: "rust".into(),
206 fuzzy: false
207 },
208 FtsQuery::Plain {
209 text: "lang".into(),
210 fuzzy: false
211 },
212 ])
213 );
214 }
215
216 #[test]
217 fn parse_or_two_terms() {

Callers

nothing calls this directly

Calls 1

parse_tsqueryFunction · 0.85

Tested by

no test coverage detected