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

Function assert_json_fn

nodedb-sql/src/resolver/expr/tests.rs:314–323  ·  view source on GitHub ↗
(sql: &str, expected_fn: &str)

Source from the content-addressed store, hash-verified

312}
313
314fn assert_json_fn(sql: &str, expected_fn: &str) {
315 let expr = select_expr_lowered(sql);
316 match expr {
317 SqlExpr::Function { name, args, .. } => {
318 assert_eq!(name, expected_fn, "wrong function name");
319 assert_eq!(args.len(), 2, "expected 2 args");
320 }
321 other => panic!("expected Function, got {other:?}"),
322 }
323}
324
325#[test]
326fn arrow_lowers_to_pg_json_get() {

Calls 1

select_expr_loweredFunction · 0.85

Tested by

no test coverage detected