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

Function tsvector_cast_elided

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

Source from the content-addressed store, hash-verified

445
446#[test]
447fn tsvector_cast_elided() {
448 // 'foo'::tsvector → Literal("foo")
449 let expr = select_expr_lowered("SELECT 'foo'::tsvector FROM t");
450 assert!(
451 matches!(expr, SqlExpr::Literal(SqlValue::String(ref s)) if s == "foo"),
452 "expected Literal(\"foo\"), got {expr:?}"
453 );
454}
455
456#[test]
457fn tsquery_cast_elided() {

Callers

nothing calls this directly

Calls 1

select_expr_loweredFunction · 0.85

Tested by

no test coverage detected