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

Function TestBasicAuth_panic

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

Source from the content-addressed store, hash-verified

157}
158
159func TestBasicAuth_panic(t *testing.T) {
160 assert.Panics(t, func() {
161 mw := BasicAuth(nil)
162 assert.NotNil(t, mw)
163 })
164
165 mw := BasicAuth(func(c *echo.Context, user string, password string) (bool, error) {
166 return true, nil
167 })
168 assert.NotNil(t, mw)
169}
170
171func TestBasicAuthWithConfig_panic(t *testing.T) {
172 assert.Panics(t, func() {

Callers

nothing calls this directly

Calls 1

BasicAuthFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…