()
| 534 | |
| 535 | #[test] |
| 536 | fn coalesce() { |
| 537 | let (expr, _) = parse_ok("COALESCE(description, '')"); |
| 538 | let doc = Value::from(serde_json::json!({"description": null})); |
| 539 | assert_eq!(expr.eval(&doc), Value::String("".into())); |
| 540 | } |
| 541 | |
| 542 | #[test] |
| 543 | fn case_when() { |
nothing calls this directly
no test coverage detected