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

Function null_literal

nodedb-query/src/expr_parse/parser.rs:579–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

577
578 #[test]
579 fn null_literal() {
580 let (expr, _) = parse_ok("COALESCE(x, NULL, 0)");
581 let doc = Value::from(serde_json::json!({"x": null}));
582 assert_eq!(expr.eval(&doc), Value::Integer(0));
583 }
584
585 #[test]
586 fn nested_functions() {

Callers

nothing calls this directly

Calls 1

parse_okFunction · 0.70

Tested by

no test coverage detected