()
| 526 | |
| 527 | #[test] |
| 528 | fn concat_function() { |
| 529 | let (expr, deps) = parse_ok("CONCAT(name, ' ', brand)"); |
| 530 | assert_eq!(deps, vec!["brand", "name"]); |
| 531 | let doc = Value::from(serde_json::json!({"name": "Shoe", "brand": "Nike"})); |
| 532 | assert_eq!(expr.eval(&doc), Value::String("Shoe Nike".into())); |
| 533 | } |
| 534 | |
| 535 | #[test] |
| 536 | fn coalesce() { |
nothing calls this directly
no test coverage detected