MCPcopy Create free account
hub / github.com/exercism/cli / TestDumpResponse

Function TestDumpResponse

debug/debug_test.go:89–101  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

87}
88
89func TestDumpResponse(t *testing.T) {
90 b := &bytes.Buffer{}
91 output = b
92 Verbose = true
93 r := &http.Response{
94 StatusCode: 200,
95 ProtoMajor: 1,
96 ProtoMinor: 1,
97 }
98
99 DumpResponse(r)
100 assert.Regexp(t, "HTTP/1.1 200 OK", b.String())
101}
102
103func TestRedact(t *testing.T) {
104 fakeToken := "1a11111aaaa111aa1a11111a11111aa1"

Callers

nothing calls this directly

Calls 2

DumpResponseFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected