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

Method LabelValuesForLabelName

pkg/querier/testutils.go:36–39  ·  view source on GitHub ↗
(ctx context.Context, from, to model.Time, lbl model.LabelName, hints *storage.LabelHints, partialDataEnabled bool, matchers ...*labels.Matcher)

Source from the content-addressed store, hash-verified

34 return args.Get(0).(*client.QueryStreamResponse), args.Error(1)
35}
36func (m *MockDistributor) LabelValuesForLabelName(ctx context.Context, from, to model.Time, lbl model.LabelName, hints *storage.LabelHints, partialDataEnabled bool, matchers ...*labels.Matcher) ([]string, error) {
37 args := m.Called(ctx, from, to, lbl, hints, matchers)
38 return args.Get(0).([]string), args.Error(1)
39}
40func (m *MockDistributor) LabelValuesForLabelNameStream(ctx context.Context, from, to model.Time, lbl model.LabelName, hints *storage.LabelHints, partialDataEnabled bool, matchers ...*labels.Matcher) ([]string, error) {
41 args := m.Called(ctx, from, to, lbl, hints, matchers)
42 return args.Get(0).([]string), args.Error(1)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected