MCPcopy Index your code
hub / github.com/labstack/echo / TestBasicAuthWithConfig_panic

Function TestBasicAuthWithConfig_panic

middleware/basic_auth_test.go:171–181  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

169}
170
171func TestBasicAuthWithConfig_panic(t *testing.T) {
172 assert.Panics(t, func() {
173 mw := BasicAuthWithConfig(BasicAuthConfig{Validator: nil})
174 assert.NotNil(t, mw)
175 })
176
177 mw := BasicAuthWithConfig(BasicAuthConfig{Validator: func(c *echo.Context, user string, password string) (bool, error) {
178 return true, nil
179 }})
180 assert.NotNil(t, mw)
181}
182
183func TestBasicAuthRealm(t *testing.T) {
184 e := echo.New()

Callers

nothing calls this directly

Calls 1

BasicAuthWithConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…