Whitespace
Signed-off-by: aram price <pricear@vmware.com>
This commit is contained in:
parent
030edaf72d
commit
d8212d1337
@ -81,12 +81,8 @@ func TestCodec(t *testing.T) {
|
||||
if test.keys != nil {
|
||||
test.keys(&encoderSigningKey, &encoderEncryptionKey, &decoderSigningKey, &decoderEncryptionKey)
|
||||
}
|
||||
encoder := New(func() []byte {
|
||||
return encoderSigningKey
|
||||
},
|
||||
func() []byte {
|
||||
return encoderEncryptionKey
|
||||
})
|
||||
encoder := New(func() []byte { return encoderSigningKey },
|
||||
func() []byte { return encoderEncryptionKey })
|
||||
|
||||
encoded, err := encoder.Encode("some-name", "some-message")
|
||||
if test.wantEncoderError != "" {
|
||||
@ -95,12 +91,8 @@ func TestCodec(t *testing.T) {
|
||||
}
|
||||
require.NoError(t, err)
|
||||
|
||||
decoder := New(func() []byte {
|
||||
return decoderSigningKey
|
||||
},
|
||||
func() []byte {
|
||||
return decoderEncryptionKey
|
||||
})
|
||||
decoder := New(func() []byte { return decoderSigningKey },
|
||||
func() []byte { return decoderEncryptionKey })
|
||||
|
||||
var decoded string
|
||||
err = decoder.Decode("some-name", encoded, &decoded)
|
||||
|
Loading…
Reference in New Issue
Block a user