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

Function range_selector

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

Source from the content-addressed store, hash-verified

474
475 #[test]
476 fn range_selector() {
477 let expr = p("requests[5m]");
478 assert!(matches!(expr, Expr::MatrixSelector { range, .. } if range.ms() == 300_000));
479 }
480
481 #[test]
482 fn rate_function() {

Callers

nothing calls this directly

Calls 1

pFunction · 0.85

Tested by

no test coverage detected