diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-09 14:03:28 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-09 14:05:15 -0700 |
| commit | 6699cff21c226aa900ed3517c0f7ef3d50cefc17 (patch) | |
| tree | 7b1f5a26ec3a2c18997bfd13ac9dfb706faa9e27 /hotline/user_test.go | |
| parent | 9cf66aeafbcbb9237fedc2efc97cc2856eb60f7f (diff) | |
Remove redundant text encoding func
Diffstat (limited to 'hotline/user_test.go')
| -rw-r--r-- | hotline/user_test.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/hotline/user_test.go b/hotline/user_test.go index 6258316..c55e35d 100644 --- a/hotline/user_test.go +++ b/hotline/user_test.go @@ -57,34 +57,6 @@ func TestReadUser(t *testing.T) { } } -func TestDecodeUserString(t *testing.T) { - type args struct { - encodedString []byte - } - tests := []struct { - name string - args args - wantDecodedString string - }{ - { - name: "decodes bytes to guest", - args: args{ - encodedString: []byte{ - 0x98, 0x8a, 0x9a, 0x8c, 0x8b, - }, - }, - wantDecodedString: "guest", - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if gotDecodedString := decodeString(tt.args.encodedString); gotDecodedString != tt.wantDecodedString { - t.Errorf("decodeString() = %v, want %v", gotDecodedString, tt.wantDecodedString) - } - }) - } -} - func TestNegatedUserString(t *testing.T) { type args struct { encodedString []byte |