aboutsummaryrefslogtreecommitdiff
path: root/key
diff options
context:
space:
mode:
Diffstat (limited to 'key')
-rw-r--r--key/key_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/key/key_test.go b/key/key_test.go
index 97b37af..6007cf0 100644
--- a/key/key_test.go
+++ b/key/key_test.go
@@ -2,12 +2,14 @@ package key
import (
"bytes"
+ "encoding"
"encoding/base64"
"testing"
)
type Interface interface {
- UnmarshalBinary([]byte) error
+ encoding.BinaryUnmarshaler
+ encoding.BinaryMarshaler
Err() error
}
@@ -45,7 +47,7 @@ func TestKeys(t *testing.T) {
if err := tc.key.Err(); err != nil {
t.Fatal(err)
}
- out, err := Marshal(tc.key)
+ out, err := tc.key.MarshalBinary()
if err != nil {
t.Fatal(err)
}