(t *testing.T)
| 169 | } |
| 170 | |
| 171 | func 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 | |
| 183 | func TestBasicAuthRealm(t *testing.T) { |
| 184 | e := echo.New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…