(t *testing.T, key string, codec codec.Codec, value interface{})
| 2009 | } |
| 2010 | |
| 2011 | func keyValuePair(t *testing.T, key string, codec codec.Codec, value interface{}) *KeyValuePair { |
| 2012 | data, err := codec.Encode(value) |
| 2013 | require.NoError(t, err) |
| 2014 | |
| 2015 | return &KeyValuePair{Key: key, Codec: codec.CodecID(), Value: data} |
| 2016 | |
| 2017 | } |
| 2018 | |
| 2019 | func marshalKeyValuePair(t *testing.T, key string, codec codec.Codec, value interface{}) []byte { |
| 2020 | kvp := keyValuePair(t, key, codec, value) |
no test coverage detected