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

Method WriteHeader

http/test_response_writer.go:47–49  ·  view source on GitHub ↗

Deprecated: Use [net/http/httptest] instead.

(i int)

Source from the content-addressed store, hash-verified

45
46// Deprecated: Use [net/http/httptest] instead.
47func (rw *TestResponseWriter) WriteHeader(i int) {
48 rw.StatusCode = i
49}

Callers 8

WriteMethod · 0.95
httpOKFunction · 0.80
httpReadBodyFunction · 0.80
httpRedirectFunction · 0.80
httpErrorFunction · 0.80
httpStatusCodeFunction · 0.80

Calls

no outgoing calls

Tested by 7

httpOKFunction · 0.64
httpReadBodyFunction · 0.64
httpRedirectFunction · 0.64
httpErrorFunction · 0.64
httpStatusCodeFunction · 0.64