aboutsummaryrefslogtreecommitdiff
path: root/hotline/user_test.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-01-24 10:41:51 -0800
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-01-24 10:41:51 -0800
commit76d0c1f61d5981603389e6267bf62636f34bef1f (patch)
tree41534fcb6f03671670b0727d40302c14b6f9def0 /hotline/user_test.go
parent6aa45e93e2b9d1bd91c9fa6a736f0c669d3ae303 (diff)
Rename encode/decode methods
Diffstat (limited to 'hotline/user_test.go')
-rw-r--r--hotline/user_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hotline/user_test.go b/hotline/user_test.go
index 2268a3e..214b1fb 100644
--- a/hotline/user_test.go
+++ b/hotline/user_test.go
@@ -77,8 +77,8 @@ func TestDecodeUserString(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
- if gotDecodedString := DecodeUserString(tt.args.encodedString); gotDecodedString != tt.wantDecodedString {
- t.Errorf("DecodeUserString() = %v, want %v", gotDecodedString, tt.wantDecodedString)
+ if gotDecodedString := decodeString(tt.args.encodedString); gotDecodedString != tt.wantDecodedString {
+ t.Errorf("decodeString() = %v, want %v", gotDecodedString, tt.wantDecodedString)
}
})
}
@@ -110,7 +110,7 @@ func TestNegatedUserString(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
- if got := negateString(tt.args.encodedString); !bytes.Equal(got, tt.want) {
+ if got := encodeString(tt.args.encodedString); !bytes.Equal(got, tt.want) {
t.Errorf("NegatedUserString() = %x, want %x", got, tt.want)
}
})