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

Function plainto_tsquery_lowers_correctly

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

Source from the content-addressed store, hash-verified

504
505#[test]
506fn plainto_tsquery_lowers_correctly() {
507 let expr = select_expr_lowered("SELECT plainto_tsquery('rust lang') FROM t");
508 match expr {
509 SqlExpr::Function { ref name, .. } => {
510 assert_eq!(name, "pg_plainto_tsquery");
511 }
512 other => panic!("expected pg_plainto_tsquery, got {other:?}"),
513 }
514}
515
516#[test]
517fn ts_rank_lowers_to_pg_ts_rank() {

Callers

nothing calls this directly

Calls 1

select_expr_loweredFunction · 0.85

Tested by

no test coverage detected