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

Function ilike_is_case_insensitive

nodedb-sql/src/resolver/expr/tests.rs:247–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245
246#[test]
247fn 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]
263fn not_like_is_negated_case_sensitive() {

Callers

nothing calls this directly

Calls 1

where_sql_exprFunction · 0.85

Tested by

no test coverage detected