(t *testing.T)
| 193 | } |
| 194 | |
| 195 | func TestWantConnQueue_newWantConnQueue(t *testing.T) { |
| 196 | q := newWantConnQueue() |
| 197 | if q == nil { |
| 198 | t.Fatal("newWantConnQueue() returned nil") |
| 199 | } |
| 200 | if q.items == nil { |
| 201 | t.Error("queue items should be initialized") |
| 202 | } |
| 203 | if len(q.items) != 0 { |
| 204 | t.Errorf("new queue length = %d, want 0", len(q.items)) |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | func TestWantConnQueue_enqueue_dequeue(t *testing.T) { |
| 209 | q := newWantConnQueue() |
nothing calls this directly
no test coverage detected