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

Function binary_precedence

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

Source from the content-addressed store, hash-verified

491
492 #[test]
493 fn binary_precedence() {
494 if let Expr::BinaryOp { op, rhs, .. } = p("a + b * c") {
495 assert_eq!(op, BinOp::Add);
496 assert!(matches!(*rhs, Expr::BinaryOp { op: BinOp::Mul, .. }));
497 } else {
498 panic!("expected BinaryOp");
499 }
500 }
501
502 #[test]
503 fn aggregation_by() {

Callers

nothing calls this directly

Calls 1

pFunction · 0.85

Tested by

no test coverage detected