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

Function nested_functions

nodedb/src/control/promql/parser.rs:523–532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

521
522 #[test]
523 fn nested_functions() {
524 if let Expr::Call { func, args } =
525 p("histogram_quantile(0.99, rate(http_duration_bucket[5m]))")
526 {
527 assert_eq!(func, "histogram_quantile");
528 assert_eq!(args.len(), 2);
529 } else {
530 panic!("expected Call");
531 }
532 }
533
534 #[test]
535 fn unary_negate() {

Callers

nothing calls this directly

Calls 1

pFunction · 0.85

Tested by

no test coverage detected