(t *testing.T)
| 1226 | } |
| 1227 | |
| 1228 | func TestMiddlewares(t *testing.T) { |
| 1229 | e := New() |
| 1230 | assert.Equal(t, 0, len(e.Middlewares())) |
| 1231 | |
| 1232 | e.Use(func(next HandlerFunc) HandlerFunc { |
| 1233 | return func(c *Context) error { |
| 1234 | return next(c) |
| 1235 | } |
| 1236 | }) |
| 1237 | |
| 1238 | assert.Equal(t, 1, len(e.Middlewares())) |
| 1239 | } |
| 1240 | |
| 1241 | func TestEcho_Start(t *testing.T) { |
| 1242 | e := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…