From 8fc43f8e53a60144f49b92a0c28b0c939a69d1c9 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Tue, 28 Jun 2022 20:44:19 -0700 Subject: Implement Scanner and Writer interface for FilePath --- hotline/file_path_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hotline/file_path_test.go') diff --git a/hotline/file_path_test.go b/hotline/file_path_test.go index f25941e..c2fa666 100644 --- a/hotline/file_path_test.go +++ b/hotline/file_path_test.go @@ -5,7 +5,7 @@ import ( "testing" ) -func TestFilePath_UnmarshalBinary(t *testing.T) { +func TestFilePath_Write(t *testing.T) { type args struct { b []byte } @@ -56,8 +56,8 @@ func TestFilePath_UnmarshalBinary(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { var fp FilePath - if err := fp.UnmarshalBinary(tt.args.b); (err != nil) != tt.wantErr { - t.Errorf("UnmarshalBinary() error = %v, wantErr %v", err, tt.wantErr) + if _, err := fp.Write(tt.args.b); (err != nil) != tt.wantErr { + t.Errorf("Write() error = %v, wantErr %v", err, tt.wantErr) } if !assert.Equal(t, tt.want, fp) { t.Errorf("Read() got = %v, want %v", fp, tt.want) -- cgit