diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-15 11:13:16 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-15 11:13:16 -0700 |
| commit | 95159e5585762c06c654945070ba54262b7dcec9 (patch) | |
| tree | 23609018c1460b056ce22067290ea12ee851d483 /hotline/file_name_with_info_test.go | |
| parent | a6216dd89252fa01dc176f98f1e4ecfd3f637566 (diff) | |
Refactoring and cleanup
* Split CLI client into separate project
* Convert more functions to follow common Golang idioms e.g io.Reader, io.Writer
* Use ldflags for versioning
* Misc cleanup and simplification
Diffstat (limited to 'hotline/file_name_with_info_test.go')
| -rw-r--r-- | hotline/file_name_with_info_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hotline/file_name_with_info_test.go b/hotline/file_name_with_info_test.go index 0473631..321e247 100644 --- a/hotline/file_name_with_info_test.go +++ b/hotline/file_name_with_info_test.go @@ -47,7 +47,7 @@ func TestFileNameWithInfo_MarshalBinary(t *testing.T) { t.Run(tt.name, func(t *testing.T) { f := &FileNameWithInfo{ fileNameWithInfoHeader: tt.fields.fileNameWithInfoHeader, - name: tt.fields.name, + Name: tt.fields.name, } gotData, err := io.ReadAll(f) if (err != nil) != tt.wantErr { @@ -98,7 +98,7 @@ func TestFileNameWithInfo_UnmarshalBinary(t *testing.T) { NameScript: [2]byte{0, 0}, NameSize: [2]byte{0x00, 0x0e}, }, - name: []byte("Audion.app.zip"), + Name: []byte("Audion.app.zip"), }, wantErr: false, }, @@ -107,7 +107,7 @@ func TestFileNameWithInfo_UnmarshalBinary(t *testing.T) { t.Run(tt.name, func(t *testing.T) { f := &FileNameWithInfo{ fileNameWithInfoHeader: tt.fields.fileNameWithInfoHeader, - name: tt.fields.name, + Name: tt.fields.name, } if _, err := f.Write(tt.args.data); (err != nil) != tt.wantErr { t.Errorf("Write() error = %v, wantErr %v", err, tt.wantErr) |