(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestHandlerRejectsGET(t *testing.T) { |
| 35 | h := Handler(NewVerifier(nil, nil), NewConsumer(nil, nil)) |
| 36 | r := httptest.NewRequest(http.MethodGet, "/x", nil) |
| 37 | w := httptest.NewRecorder() |
| 38 | h(w, r) |
| 39 | if w.Code != http.StatusMethodNotAllowed { |
| 40 | t.Fatalf("GET: status=%d, want 405", w.Code) |
| 41 | } |
| 42 | } |
nothing calls this directly
no test coverage detected