(w http.ResponseWriter, req *http.Request)
| 31 | } |
| 32 | |
| 33 | func (t *testStruct) ServeHTTP(w http.ResponseWriter, req *http.Request) { |
| 34 | assert.Equal(t.T, http.MethodPost, req.Method) |
| 35 | assert.Equal(t.T, "/path", req.URL.Path) |
| 36 | w.WriteHeader(http.StatusInternalServerError) |
| 37 | fmt.Fprint(w, "hello") |
| 38 | } |
| 39 | |
| 40 | func TestWrap(t *testing.T) { |
| 41 | router := New() |
nothing calls this directly
no test coverage detected