MCPcopy
hub / github.com/labstack/echo / TestBodyDumpWithConfig_panic

Function TestBodyDumpWithConfig_panic

middleware/body_dump_test.go:94–107  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

92}
93
94func 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
109func TestBodyDump_panic(t *testing.T) {
110 assert.Panics(t, func() {

Callers

nothing calls this directly

Calls 1

BodyDumpWithConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…