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

Function like_is_case_sensitive

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

Source from the content-addressed store, hash-verified

229
230#[test]
231fn 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]
247fn ilike_is_case_insensitive() {

Callers

nothing calls this directly

Calls 1

where_sql_exprFunction · 0.85

Tested by

no test coverage detected