Fixed test after unexporting parseString

This commit is contained in:
Christian Banse 2023-02-20 23:05:07 +01:00
parent fa7a12b45f
commit 57662e57d3
1 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ func TestMapClaimsVerifyExpiresAtExpire(t *testing.T) {
} }
} }
func TestMapClaims_ParseString(t *testing.T) { func TestMapClaims_parseString(t *testing.T) {
type args struct { type args struct {
key string key string
} }
@ -176,13 +176,13 @@ func TestMapClaims_ParseString(t *testing.T) {
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
got, err := tt.m.ParseString(tt.args.key) got, err := tt.m.parseString(tt.args.key)
if (err != nil) != tt.wantErr { if (err != nil) != tt.wantErr {
t.Errorf("MapClaims.ParseString() error = %v, wantErr %v", err, tt.wantErr) t.Errorf("MapClaims.parseString() error = %v, wantErr %v", err, tt.wantErr)
return return
} }
if got != tt.want { if got != tt.want {
t.Errorf("MapClaims.ParseString() = %v, want %v", got, tt.want) t.Errorf("MapClaims.parseString() = %v, want %v", got, tt.want)
} }
}) })
} }