From 57662e57d3f920d37bfacad3e74790d37123f8ba Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Mon, 20 Feb 2023 23:05:07 +0100 Subject: [PATCH] Fixed test after unexporting parseString --- map_claims_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/map_claims_test.go b/map_claims_test.go index b4af574..83065d5 100644 --- a/map_claims_test.go +++ b/map_claims_test.go @@ -135,7 +135,7 @@ func TestMapClaimsVerifyExpiresAtExpire(t *testing.T) { } } -func TestMapClaims_ParseString(t *testing.T) { +func TestMapClaims_parseString(t *testing.T) { type args struct { key string } @@ -176,13 +176,13 @@ func TestMapClaims_ParseString(t *testing.T) { } for _, tt := range tests { 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 { - t.Errorf("MapClaims.ParseString() error = %v, wantErr %v", err, tt.wantErr) + t.Errorf("MapClaims.parseString() error = %v, wantErr %v", err, tt.wantErr) return } if got != tt.want { - t.Errorf("MapClaims.ParseString() = %v, want %v", got, tt.want) + t.Errorf("MapClaims.parseString() = %v, want %v", got, tt.want) } }) }