()
| 229 | |
| 230 | #[test] |
| 231 | fn like_is_case_sensitive() { |
| 232 | let expr = where_sql_expr("SELECT * FROM t WHERE name LIKE 'foo%'"); |
| 233 | match expr { |
| 234 | SqlExpr::Like { |
| 235 | negated, |
| 236 | case_insensitive, |
| 237 | .. |
| 238 | } => { |
| 239 | assert!(!negated, "LIKE should not be negated"); |
| 240 | assert!(!case_insensitive, "LIKE should be case-sensitive"); |
| 241 | } |
| 242 | other => panic!("expected SqlExpr::Like, got {other:?}"), |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | #[test] |
| 247 | fn ilike_is_case_insensitive() { |
nothing calls this directly
no test coverage detected