(t *testing.T)
| 157 | } |
| 158 | |
| 159 | func 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 | |
| 171 | func TestBasicAuthWithConfig_panic(t *testing.T) { |
| 172 | assert.Panics(t, func() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…