(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func TestPrint(t *testing.T) { |
| 78 | var buf bytes.Buffer |
| 79 | w := colorprofile.NewWriter(&buf, os.Environ()) |
| 80 | w.Profile = colorprofile.ANSI |
| 81 | SetOutput(w) |
| 82 | SetLevel(FatalLevel) |
| 83 | SetTimeFunction(_zeroTime) |
| 84 | SetReportTimestamp(true) |
| 85 | SetReportCaller(false) |
| 86 | SetTimeFormat(DefaultTimeFormat) |
| 87 | Error("error") |
| 88 | Print("print") |
| 89 | assert.Equal(t, "0002/01/01 00:00:00 print\n", buf.String()) |
| 90 | } |
| 91 | |
| 92 | func TestPrintf(t *testing.T) { |
| 93 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…