(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func 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 | |
| 15 | func TestUnwrapWithoutWrap(t *testing.T) { |
| 16 | w := httptest.NewRecorder() |