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

Function Test_EncodeMultikey_CheckInterface

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

Source from the content-addressed store, hash-verified

9)
10
11func Test_EncodeMultikey_CheckInterface(t *testing.T) {
12 m := NewProtoCodec("test", newMockMessage)
13
14 _, err := m.EncodeMultiKey(nil)
15
16 require.Error(t, err, "invalid type")
17}
18
19func Test_DecodeMultikey_CheckInterface(t *testing.T) {
20 m := NewProtoCodec("test", newMockMessage)

Callers

nothing calls this directly

Calls 3

NewProtoCodecFunction · 0.85
EncodeMultiKeyMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected