(t *testing.T)
| 135 | } |
| 136 | |
| 137 | func TestRandomString(t *testing.T) { |
| 138 | s1 := randomString(8) |
| 139 | s2 := randomString(8) |
| 140 | |
| 141 | if len(s1) != 8 { |
| 142 | t.Errorf("expected length 8, got %d", len(s1)) |
| 143 | } |
| 144 | if s1 == s2 { |
| 145 | t.Error("random strings should be different") |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | func TestClose(t *testing.T) { |
| 150 | eb := NewEventBus() |
nothing calls this directly
no test coverage detected