MCPcopy
hub / github.com/grafana/dskit / TestDefaultStoreValue

Function TestDefaultStoreValue

kv/client_test.go:163–172  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

161}
162
163func TestDefaultStoreValue(t *testing.T) {
164 cfg1 := Config{}
165 cfg1.RegisterFlagsWithPrefix("", "", flag.NewFlagSet("test", flag.PanicOnError))
166 assert.Equal(t, "consul", cfg1.Store)
167
168 cfg2 := Config{}
169 cfg2.Store = "memberlist"
170 cfg2.RegisterFlagsWithPrefix("", "", flag.NewFlagSet("test", flag.PanicOnError))
171 assert.Equal(t, "memberlist", cfg2.Store)
172}
173
174type stringCodec struct {
175 value string

Callers

nothing calls this directly

Calls 2

EqualMethod · 0.45

Tested by

no test coverage detected