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

Function newMockStoreQueryable

pkg/querier/querier_test.go:1448–1457  ·  view source on GitHub ↗
(store mockStore, chunkIteratorFunc chunkIteratorFunc)

Source from the content-addressed store, hash-verified

1446}
1447
1448func newMockStoreQueryable(store mockStore, chunkIteratorFunc chunkIteratorFunc) storage.Queryable {
1449 return storage.QueryableFunc(func(mint, maxt int64) (storage.Querier, error) {
1450 return &mockStoreQuerier{
1451 store: store,
1452 chunkIteratorFunc: chunkIteratorFunc,
1453 mint: mint,
1454 maxt: maxt,
1455 }, nil
1456 })
1457}
1458
1459type mockStoreQuerier struct {
1460 store mockStore

Callers 1

NewMockStoreQueryableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected