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

Function topk_with_param

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

Source from the content-addressed store, hash-verified

511
512 #[test]
513 fn topk_with_param() {
514 if let Expr::Aggregate { op, param, .. } = p("topk(5, requests)") {
515 assert_eq!(op, AggOp::Topk);
516 assert!(param.is_some());
517 } else {
518 panic!("expected Aggregate");
519 }
520 }
521
522 #[test]
523 fn nested_functions() {

Callers

nothing calls this directly

Calls 1

pFunction · 0.85

Tested by

no test coverage detected