()
| 245 | |
| 246 | #[test] |
| 247 | fn ilike_is_case_insensitive() { |
| 248 | let expr = where_sql_expr("SELECT * FROM t WHERE name ILIKE 'foo%'"); |
| 249 | match expr { |
| 250 | SqlExpr::Like { |
| 251 | negated, |
| 252 | case_insensitive, |
| 253 | .. |
| 254 | } => { |
| 255 | assert!(!negated, "ILIKE should not be negated"); |
| 256 | assert!(case_insensitive, "ILIKE should be case-insensitive"); |
| 257 | } |
| 258 | other => panic!("expected SqlExpr::Like, got {other:?}"), |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | #[test] |
| 263 | fn not_like_is_negated_case_sensitive() { |
nothing calls this directly
no test coverage detected