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 {
|
if test.keys != nil {
|
||||||
test.keys(&encoderSigningKey, &encoderEncryptionKey, &decoderSigningKey, &decoderEncryptionKey)
|
test.keys(&encoderSigningKey, &encoderEncryptionKey, &decoderSigningKey, &decoderEncryptionKey)
|
||||||
}
|
}
|
||||||
encoder := New(func() []byte {
|
encoder := New(func() []byte { return encoderSigningKey },
|
||||||
return encoderSigningKey
|
func() []byte { return encoderEncryptionKey })
|
||||||
},
|
|
||||||
func() []byte {
|
|
||||||
return encoderEncryptionKey
|
|
||||||
})
|
|
||||||
|
|
||||||
encoded, err := encoder.Encode("some-name", "some-message")
|
encoded, err := encoder.Encode("some-name", "some-message")
|
||||||
if test.wantEncoderError != "" {
|
if test.wantEncoderError != "" {
|
||||||
@ -95,12 +91,8 @@ func TestCodec(t *testing.T) {
|
|||||||
}
|
}
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
decoder := New(func() []byte {
|
decoder := New(func() []byte { return decoderSigningKey },
|
||||||
return decoderSigningKey
|
func() []byte { return decoderEncryptionKey })
|
||||||
},
|
|
||||||
func() []byte {
|
|
||||||
return decoderEncryptionKey
|
|
||||||
})
|
|
||||||
|
|
||||||
var decoded string
|
var decoded string
|
||||||
err = decoder.Decode("some-name", encoded, &decoded)
|
err = decoder.Decode("some-name", encoded, &decoded)
|
||||||
|
Loading…
Reference in New Issue
Block a user