MCPcopy Create free account
hub / github.com/felixge/httpsnoop / TestUnwrapWithoutWrap

Function TestUnwrapWithoutWrap

unwrap_test.go:15–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13}
14
15func TestUnwrapWithoutWrap(t *testing.T) {
16 w := httptest.NewRecorder()
17 if _, ok := Unwrap(w).(*httptest.ResponseRecorder); !ok {
18 t.Error("expected ResponseRecorder")
19 }
20}
21
22func TestUnwrapMultipleLayers(t *testing.T) {
23 w := Wrap(Wrap(httptest.NewRecorder(), Hooks{}), Hooks{})

Callers

nothing calls this directly

Calls 1

UnwrapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…