MCPcopy Index your code
hub / github.com/cortexproject/cortex / NewMockStoreQueryable

Function NewMockStoreQueryable

pkg/querier/querier_test.go:1444–1446  ·  view source on GitHub ↗

NewMockStoreQueryable returns the storage.Queryable implementation against the chunks store.

(store mockStore)

Source from the content-addressed store, hash-verified

1442
1443// NewMockStoreQueryable returns the storage.Queryable implementation against the chunks store.
1444func NewMockStoreQueryable(store mockStore) storage.Queryable {
1445 return newMockStoreQueryable(store, getChunksIteratorFunction(Config{}))
1446}
1447
1448func newMockStoreQueryable(store mockStore, chunkIteratorFunc chunkIteratorFunc) storage.Queryable {
1449 return storage.QueryableFunc(func(mint, maxt int64) (storage.Querier, error) {

Calls 2

newMockStoreQueryableFunction · 0.85

Tested by

no test coverage detected