aboutsummaryrefslogtreecommitdiff
path: root/type_test.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-17 15:53:13 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-17 15:53:13 +0100
commit24c9cba5648e9b9c5913a2a88af78dcca768b36f (patch)
tree34cf313da258d218e1b0bad1754ec38cd7294b4c /type_test.go
parentc11006fb89bcac7fdfc2278990b2b1a3a3553ba9 (diff)
used (un)marshalB64 in tests
The base64 wrappers use (un)marshal internally.
Diffstat (limited to 'type_test.go')
-rw-r--r--type_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/type_test.go b/type_test.go
index 1389467..0033ec8 100644
--- a/type_test.go
+++ b/type_test.go
@@ -311,7 +311,7 @@ func TestEncDecStItem(t *testing.T) {
item: NewChecksumV1(testPackage, make([]byte, checksumMax)),
},
} {
- b, err := table.item.Marshal()
+ b, err := table.item.MarshalB64()
if err != nil && !table.wantErr {
t.Errorf("failed marshaling StItem(%s) in test %q: %v", table.item.Format, table.description, err)
} else if err == nil && table.wantErr {
@@ -322,7 +322,7 @@ func TestEncDecStItem(t *testing.T) {
}
var item StItem
- if err := item.Unmarshal(b); err != nil {
+ if err := item.UnmarshalB64(b); err != nil {
t.Errorf("failed unmarshaling StItem(%s) in test %q: %v", table.item.Format, table.description, err)
}
}