(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestOneTarget(t *testing.T) { |
| 41 | var buf bytes.Buffer |
| 42 | setUpTest(t, &buf) |
| 43 | SetTarget(General) |
| 44 | General.Print("test") |
| 45 | if buf.String() != "test\n" { |
| 46 | t.Error("expected 'test'") |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func TestMultipleTargets(t *testing.T) { |
| 51 | var buf bytes.Buffer |