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

Function tsquery_cast_elided

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

Source from the content-addressed store, hash-verified

455
456#[test]
457fn tsquery_cast_elided() {
458 // 'rust'::tsquery → Literal("rust")
459 let expr = select_expr_lowered("SELECT 'rust'::tsquery FROM t");
460 assert!(
461 matches!(expr, SqlExpr::Literal(SqlValue::String(ref s)) if s == "rust"),
462 "expected Literal(\"rust\"), got {expr:?}"
463 );
464}
465
466#[test]
467fn ts_rank_cd_is_unsupported() {

Callers

nothing calls this directly

Calls 1

select_expr_loweredFunction · 0.85

Tested by

no test coverage detected