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

Function Test_DecodeMultikey_CheckInterface

pkg/ring/kv/codec/codec_test.go:19–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17}
18
19func Test_DecodeMultikey_CheckInterface(t *testing.T) {
20 m := NewProtoCodec("test", newMockMessage)
21
22 _, err := m.DecodeMultiKey(nil)
23
24 require.Error(t, err, "invalid type")
25}
26
27func Test_EncodeMultikey(t *testing.T) {
28 codec := NewProtoCodec("test", newProtoDescMock)

Callers

nothing calls this directly

Calls 3

NewProtoCodecFunction · 0.85
DecodeMultiKeyMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected