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

Function parse_or_two_terms

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

Source from the content-addressed store, hash-verified

215
216 #[test]
217 fn parse_or_two_terms() {
218 let q = parse_tsquery("rust | lang").unwrap();
219 assert_eq!(
220 q,
221 FtsQuery::Or(vec![
222 FtsQuery::Plain {
223 text: "rust".into(),
224 fuzzy: false
225 },
226 FtsQuery::Plain {
227 text: "lang".into(),
228 fuzzy: false
229 },
230 ])
231 );
232 }
233
234 #[test]
235 fn parse_prefix() {

Callers

nothing calls this directly

Calls 1

parse_tsqueryFunction · 0.85

Tested by

no test coverage detected