style: make lint-fix everything (#15631)
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
d9e04c56c6
commit
b009a75eea
@@ -13,7 +13,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// TestKeyCodec asserts the correct behaviour of a KeyCodec over the type T.
|
||||
// TestKeyCodec asserts the correct behavior of a KeyCodec over the type T.
|
||||
func TestKeyCodec[T any](t *testing.T, keyCodec codec.KeyCodec[T], key T) {
|
||||
buffer := make([]byte, keyCodec.Size(key))
|
||||
written, err := keyCodec.Encode(buffer, key)
|
||||
@@ -43,7 +43,7 @@ func TestKeyCodec[T any](t *testing.T, keyCodec codec.KeyCodec[T], key T) {
|
||||
require.Equal(t, key, decoded, "json encoding and decoding did not produce the same results")
|
||||
}
|
||||
|
||||
// TestValueCodec asserts the correct behaviour of a ValueCodec over the type T.
|
||||
// TestValueCodec asserts the correct behavior of a ValueCodec over the type T.
|
||||
func TestValueCodec[T any](t *testing.T, encoder codec.ValueCodec[T], value T) {
|
||||
encodedValue, err := encoder.Encode(value)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user