MCPcopy Create free account
hub / github.com/cortexproject/cortex / expectedResponse

Function expectedResponse

pkg/distributor/distributor_test.go:3668–3686  ·  view source on GitHub ↗
(start, end int)

Source from the content-addressed store, hash-verified

3666}
3667
3668func expectedResponse(start, end int) model.Matrix {
3669 result := model.Matrix{}
3670 for i := start; i < end; i++ {
3671 result = append(result, &model.SampleStream{
3672 Metric: model.Metric{
3673 model.MetricNameLabel: "foo",
3674 "bar": "baz",
3675 "sample": model.LabelValue(fmt.Sprintf("%d", i)),
3676 },
3677 Values: []model.SamplePair{
3678 {
3679 Value: model.SampleValue(i),
3680 Timestamp: model.Time(i),
3681 },
3682 },
3683 })
3684 }
3685 return result
3686}
3687
3688func mustEqualMatcher(k, v string) *labels.Matcher {
3689 m, err := labels.NewMatcher(labels.MatchEqual, k, v)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected