MCPcopy Create free account
hub / github.com/dnote/dnote / mustMakeRequest

Function mustMakeRequest

pkg/server/middleware/helpers_test.go:104–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

102}
103
104func mustMakeRequest(t *testing.T) *http.Request {
105 r, err := http.NewRequest("GET", "/", nil)
106 if err != nil {
107 t.Fatal(errors.Wrap(err, "constructing request"))
108 }
109
110 return r
111}
112
113func TestGetCredential(t *testing.T) {
114 r1 := mustMakeRequest(t)

Callers 1

TestGetCredentialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected