(t *testing.T, name string, ch Channel)
| 37 | } |
| 38 | |
| 39 | func testChannelConcurrentAccessors(t *testing.T, name string, ch Channel) { |
| 40 | // no asserts here, this is just for the race detector's benefit |
| 41 | go ch.Len() |
| 42 | go ch.Cap() |
| 43 | |
| 44 | go func() { |
| 45 | ch.In() <- nil |
| 46 | }() |
| 47 | |
| 48 | go func() { |
| 49 | <-ch.Out() |
| 50 | }() |
| 51 | } |
| 52 | |
| 53 | func TestPipe(t *testing.T) { |
| 54 | a := NewNativeChannel(None) |
no test coverage detected
searching dependent graphs…