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

Function newConfigsForTest

pkg/ring/kv/client_test.go:125–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 return result
124}
125func newConfigsForTest() (cfg StoreConfig, c codec.Codec) {
126 cfg = StoreConfig{
127 Multi: MultiConfig{
128 Primary: "inmemory",
129 Secondary: "mock",
130 },
131 }
132 c = codec.NewProtoCodec("test", func() proto.Message {
133 return &mockMessage{id: "inCodec"}
134 })
135 return
136}
137
138type mockMessage struct {
139 id string

Calls 1

NewProtoCodecFunction · 0.92

Tested by

no test coverage detected