(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestConsole_log(t *testing.T) { |
| 33 | t.Parallel() |
| 34 | |
| 35 | var stdOut bytes.Buffer |
| 36 | var stdErr bytes.Buffer |
| 37 | console(&stdOut, &stdErr)["log"]("log message") |
| 38 | |
| 39 | assert.Equal(t, "log message\n", stdOut.String()) |
| 40 | assert.Empty(t, stdErr.String()) |
| 41 | } |
| 42 | |
| 43 | func TestConsole_trace(t *testing.T) { |
| 44 | t.Parallel() |