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

Method Postings

pkg/ingester/user_state_test.go:335–342  ·  view source on GitHub ↗
(ctx context.Context, name string, values ...string)

Source from the content-addressed store, hash-verified

333}
334
335func (ir *mockIndexReader) Postings(ctx context.Context, name string, values ...string) (index.Postings, error) {
336 if entries, ok := ir.postings[name]; ok {
337 if postings, ok2 := entries[values[0]]; ok2 {
338 return postings, nil
339 }
340 }
341 return index.EmptyPostings(), nil
342}
343
344func (ir *mockIndexReader) Symbols() index.StringIter { return nil }
345

Callers 3

getPostingForLabelsFunction · 0.80
TestPushRaceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected