MCPcopy Index your code
hub / github.com/felixge/httpsnoop / TestUnwrap

Function TestUnwrap

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

Source from the content-addressed store, hash-verified

6)
7
8func TestUnwrap(t *testing.T) {
9 w := Wrap(httptest.NewRecorder(), Hooks{})
10 if _, ok := Unwrap(w).(*httptest.ResponseRecorder); !ok {
11 t.Error("expected ResponseRecorder")
12 }
13}
14
15func TestUnwrapWithoutWrap(t *testing.T) {
16 w := httptest.NewRecorder()

Callers

nothing calls this directly

Calls 2

WrapFunction · 0.85
UnwrapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…