MCPcopy Index your code
hub / github.com/labstack/echo / TestBodyDump_panic

Function TestBodyDump_panic

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

Source from the content-addressed store, hash-verified

107}
108
109func TestBodyDump_panic(t *testing.T) {
110 assert.Panics(t, func() {
111 mw := BodyDump(nil)
112 assert.NotNil(t, mw)
113 })
114
115 assert.NotPanics(t, func() {
116 BodyDump(func(c *echo.Context, reqBody, resBody []byte, err error) {})
117 })
118}
119
120func TestBodyDumpResponseWriter_CanNotFlush(t *testing.T) {
121 bdrw := bodyDumpResponseWriter{

Callers

nothing calls this directly

Calls 1

BodyDumpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…