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

Method LabelNames

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

Source from the content-addressed store, hash-verified

42 return args.Get(0).([]string), args.Error(1)
43}
44func (m *MockDistributor) LabelNames(ctx context.Context, from model.Time, to model.Time, hints *storage.LabelHints, b bool, matchers ...*labels.Matcher) ([]string, error) {
45 args := m.Called(ctx, from, to, hints, matchers)
46 return args.Get(0).([]string), args.Error(1)
47}
48func (m *MockDistributor) LabelNamesStream(ctx context.Context, from model.Time, to model.Time, hints *storage.LabelHints, b bool, matchers ...*labels.Matcher) ([]string, error) {
49 args := m.Called(ctx, from, to, hints, matchers)
50 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