MCPcopy Create free account
hub / github.com/cloudflare/cfssl / TestBadRequestBody

Function TestBadRequestBody

api/initca/initca_test.go:68–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func 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
77func TestBadRequestBody_2(t *testing.T) {
78 ts := httptest.NewServer(NewHandler())

Callers

nothing calls this directly

Calls 1

NewHandlerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…