MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestHandlerRejectsGET

Function TestHandlerRejectsGET

internal/delivery/handler_test.go:34–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func 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}

Callers

nothing calls this directly

Calls 3

NewVerifierFunction · 0.85
NewConsumerFunction · 0.85
HandlerFunction · 0.70

Tested by

no test coverage detected