(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func 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 | |
| 103 | func TestRedact(t *testing.T) { |
| 104 | fakeToken := "1a11111aaaa111aa1a11111a11111aa1" |
nothing calls this directly
no test coverage detected