(t *testing.T)
| 1213 | } |
| 1214 | |
| 1215 | func TestPreMiddlewares(t *testing.T) { |
| 1216 | e := New() |
| 1217 | assert.Equal(t, 0, len(e.PreMiddlewares())) |
| 1218 | |
| 1219 | e.Pre(func(next HandlerFunc) HandlerFunc { |
| 1220 | return func(c *Context) error { |
| 1221 | return next(c) |
| 1222 | } |
| 1223 | }) |
| 1224 | |
| 1225 | assert.Equal(t, 1, len(e.PreMiddlewares())) |
| 1226 | } |
| 1227 | |
| 1228 | func TestMiddlewares(t *testing.T) { |
| 1229 | e := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…