(t *testing.T)
| 66 | } |
| 67 | |
| 68 | func TestBadRequestBody(t *testing.T) { |
| 69 | ts := httptest.NewServer(NewHandler()) |
| 70 | req, _ := http.NewRequest("POST", ts.URL, nil) |
| 71 | resp, _ := http.DefaultClient.Do(req) |
| 72 | if resp.StatusCode == http.StatusOK { |
| 73 | t.Fatal(resp.Status) |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func TestBadRequestBody_2(t *testing.T) { |
| 78 | ts := httptest.NewServer(NewHandler()) |
nothing calls this directly
no test coverage detected
searching dependent graphs…