(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestBatchingChannelCap(t *testing.T) { |
| 36 | ch := NewBatchingChannel(Infinity) |
| 37 | if ch.Cap() != Infinity { |
| 38 | t.Error("incorrect capacity on infinite channel") |
| 39 | } |
| 40 | |
| 41 | ch = NewBatchingChannel(5) |
| 42 | if ch.Cap() != 5 { |
| 43 | t.Error("incorrect capacity on infinite channel") |
| 44 | } |
| 45 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…