(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestMultipleTargets(t *testing.T) { |
| 51 | var buf bytes.Buffer |
| 52 | setUpTest(t, &buf) |
| 53 | SetTarget(General | Packet) |
| 54 | General.Print("a") |
| 55 | Packet.Print("b") |
| 56 | if buf.String() != "a\nb\n" { |
| 57 | t.Error("expected 'a\nb\n'") |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func TestPrintf(t *testing.T) { |
| 62 | var buf bytes.Buffer |