MCPcopy
hub / github.com/gin-gonic/gin / TestBasicAuthFails

Function TestBasicAuthFails

auth_test.go:38–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestBasicAuthFails(t *testing.T) {
39 assert.Panics(t, func() { processAccounts(nil) })
40 assert.Panics(t, func() {
41 processAccounts(Accounts{
42 "": "password",
43 "foo": "bar",
44 })
45 })
46}
47
48func TestBasicAuthSearchCredential(t *testing.T) {
49 pairs := processAccounts(Accounts{

Callers

nothing calls this directly

Calls 1

processAccountsFunction · 0.85

Tested by

no test coverage detected