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

Function offset_modifier

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

Source from the content-addressed store, hash-verified

538
539 #[test]
540 fn offset_modifier() {
541 if let Expr::VectorSelector { offset, .. } = p("up offset 5m") {
542 assert_eq!(offset, Some(Duration(300_000)));
543 } else {
544 panic!("expected VectorSelector");
545 }
546 }
547
548 #[test]
549 fn comparison_bool() {

Callers

nothing calls this directly

Calls 1

pFunction · 0.85

Tested by

no test coverage detected