MCPcopy
hub / github.com/stretchr/testify / httpStatusCode

Function httpStatusCode

assert/http_assertions_test.go:29–31  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

27}
28
29func httpStatusCode(w http.ResponseWriter, r *http.Request) {
30 w.WriteHeader(http.StatusSwitchingProtocols)
31}
32
33func TestHTTPSuccess(t *testing.T) {
34 t.Parallel()

Callers

nothing calls this directly

Calls 1

WriteHeaderMethod · 0.80

Tested by

no test coverage detected