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

Function get

api/api_test.go:62–73  ·  view source on GitHub ↗
(t *testing.T, ts *httptest.Server)

Source from the content-addressed store, hash-verified

60}
61
62func get(t *testing.T, ts *httptest.Server) (resp *http.Response, body []byte) {
63 resp, err := http.Get(ts.URL)
64 if err != nil {
65 t.Fatal(err)
66 }
67
68 body, err = io.ReadAll(resp.Body)
69 if err != nil {
70 t.Fatal(err)
71 }
72 return
73}
74
75func TestRigidHandle(t *testing.T) {
76 ts := httptest.NewServer(HTTPHandler{Handler: HandlerFunc(simpleHandle), Methods: []string{"POST"}})

Callers 2

TestRigidHandleFunction · 0.85
TestCleverHandleFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected