(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestLogger(t *testing.T) { |
| 12 | buf := new(bytes.Buffer) |
| 13 | l := NewLogger(buf, "", log.Ldate|log.Lmicroseconds) |
| 14 | c := tc().SetLogger(l) |
| 15 | c.SetProxyURL(":=\\<>ksfj&*&sf") |
| 16 | tests.AssertContains(t, buf.String(), "error", true) |
| 17 | buf.Reset() |
| 18 | c.R().SetOutput(nil) |
| 19 | tests.AssertContains(t, buf.String(), "warn", true) |
| 20 | } |
| 21 | |
| 22 | func TestLoggerFromStandardLogger(t *testing.T) { |
| 23 | buf := new(bytes.Buffer) |
nothing calls this directly
no test coverage detected
searching dependent graphs…