(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func TestBodyDumpWithConfig_panic(t *testing.T) { |
| 95 | assert.Panics(t, func() { |
| 96 | mw := BodyDumpWithConfig(BodyDumpConfig{ |
| 97 | Skipper: nil, |
| 98 | Handler: nil, |
| 99 | }) |
| 100 | assert.NotNil(t, mw) |
| 101 | }) |
| 102 | |
| 103 | assert.NotPanics(t, func() { |
| 104 | mw := BodyDumpWithConfig(BodyDumpConfig{Handler: func(c *echo.Context, reqBody, resBody []byte, err error) {}}) |
| 105 | assert.NotNil(t, mw) |
| 106 | }) |
| 107 | } |
| 108 | |
| 109 | func TestBodyDump_panic(t *testing.T) { |
| 110 | assert.Panics(t, func() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…