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

Function parse_not_term

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

Source from the content-addressed store, hash-verified

264
265 #[test]
266 fn parse_not_term() {
267 let q = parse_tsquery("!foo").unwrap();
268 assert_eq!(
269 q,
270 FtsQuery::Not(Box::new(FtsQuery::Plain {
271 text: "foo".into(),
272 fuzzy: false
273 }))
274 );
275 }
276
277 #[test]
278 fn parse_empty_is_error() {

Callers

nothing calls this directly

Calls 1

parse_tsqueryFunction · 0.85

Tested by

no test coverage detected