(t *testing.T)
| 97 | } |
| 98 | |
| 99 | func TestCommentWorkerPool_AwaitEmpty(t *testing.T) { |
| 100 | p := NewCommentWorkerPool(2) |
| 101 | results := p.Await() |
| 102 | if results != nil { |
| 103 | t.Errorf("expected nil for no submissions, got %v", results) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func TestCommentWorkerPool_PanicIsIsolated(t *testing.T) { |
| 108 | p := NewCommentWorkerPool(2) |
nothing calls this directly
no test coverage detected