aboutsummaryrefslogtreecommitdiff
path: root/atom/atom_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'atom/atom_test.go')
-rw-r--r--atom/atom_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/atom/atom_test.go b/atom/atom_test.go
index 6149b5cdf..a002f06f3 100644
--- a/atom/atom_test.go
+++ b/atom/atom_test.go
@@ -29,13 +29,13 @@ func (testAtomA) TypeID() TypeID { return testAtomIDA }
func (a *testAtomA) ContextID() ContextID { return a.Context }
func (a *testAtomA) Info() string { return "" }
func (a *testAtomA) Flags() Flags { return 0 }
-func (a *testAtomA) Encode(e *binary.Encoder) error {
+func (a *testAtomA) Encode(e binary.Encoder) error {
if err := e.Uint32(uint32(a.Context)); err != nil {
return err
}
return e.Int32(a.Int32)
}
-func (a *testAtomA) Decode(d *binary.Decoder) (err error) {
+func (a *testAtomA) Decode(d binary.Decoder) (err error) {
if obj, err := d.Uint32(); err != nil {
return err
} else {
@@ -54,13 +54,13 @@ func (testAtomB) TypeID() TypeID { return testAtomIDB }
func (a *testAtomB) ContextID() ContextID { return a.Context }
func (a *testAtomB) Info() string { return "" }
func (a *testAtomB) Flags() Flags { return 0 }
-func (a *testAtomB) Encode(e *binary.Encoder) error {
+func (a *testAtomB) Encode(e binary.Encoder) error {
if err := e.Uint32(uint32(a.Context)); err != nil {
return err
}
return e.Bool(a.Bool)
}
-func (a *testAtomB) Decode(d *binary.Decoder) (err error) {
+func (a *testAtomB) Decode(d binary.Decoder) (err error) {
if obj, err := d.Uint32(); err != nil {
return err
} else {
@@ -79,13 +79,13 @@ func (testAtomC) TypeID() TypeID { return testAtomIDC }
func (a *testAtomC) ContextID() ContextID { return a.Context }
func (a *testAtomC) Info() string { return "" }
func (a *testAtomC) Flags() Flags { return 0 }
-func (a *testAtomC) Encode(e *binary.Encoder) error {
+func (a *testAtomC) Encode(e binary.Encoder) error {
if err := e.Uint32(uint32(a.Context)); err != nil {
return err
}
return e.String(a.String)
}
-func (a *testAtomC) Decode(d *binary.Decoder) (err error) {
+func (a *testAtomC) Decode(d binary.Decoder) (err error) {
if obj, err := d.Uint32(); err != nil {
return err
} else {