()
| 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() { |
nothing calls this directly
no test coverage detected