MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / fixedResponseServer

Function fixedResponseServer

credhub/auth/oauth_test.go:563–568  ·  view source on GitHub ↗
(statusCode int, body []byte)

Source from the content-addressed store, hash-verified

561})
562
563func fixedResponseServer(statusCode int, body []byte) *httptest.Server {
564 return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
565 w.WriteHeader(statusCode)
566 w.Write(body)
567 }))
568}
569
570type errorReader struct {
571}

Callers 1

oauth_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…