Skip to content

Commit 73938a8

Browse files
committed
add extract test
1 parent 3b2a883 commit 73938a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

path_auth_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,10 @@ func TestPathAuthWithConfig_panicsOnEmptyParam(t *testing.T) {
237237
},
238238
)
239239
}
240+
241+
func TestExtract(t *testing.T) {
242+
243+
assert.True(t, extract("apikey", []string{"apikey", "valid-key"}))
244+
assert.False(t, extract("apikey", []string{"valid-key"}))
245+
246+
}

0 commit comments

Comments
 (0)