mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge b8a5386d4e
into 61aa82865d
This commit is contained in:
commit
6bdb790de0
|
@ -3947,6 +3947,26 @@ var testExpr = []struct {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
input: "(sum(foo))",
|
||||||
|
expected: &ParenExpr{
|
||||||
|
Expr: &AggregateExpr{
|
||||||
|
Op: SUM,
|
||||||
|
Expr: &VectorSelector{
|
||||||
|
Name: "foo",
|
||||||
|
LabelMatchers: []*labels.Matcher{
|
||||||
|
MustLabelMatcher(labels.MatchEqual, model.MetricNameLabel, "foo"),
|
||||||
|
},
|
||||||
|
PosRange: posrange.PositionRange{
|
||||||
|
Start: 5,
|
||||||
|
End: 8,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PosRange: posrange.PositionRange{Start: 1, End: 9},
|
||||||
|
},
|
||||||
|
PosRange: posrange.PositionRange{Start: 0, End: 10},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeInt64Pointer(val int64) *int64 {
|
func makeInt64Pointer(val int64) *int64 {
|
||||||
|
|
Loading…
Reference in a new issue