(t *testing.T)
| 3 | import "testing" |
| 4 | |
| 5 | func TestNativeChannels(t *testing.T) { |
| 6 | var ch Channel |
| 7 | |
| 8 | ch = NewNativeChannel(None) |
| 9 | testChannel(t, "bufferless native channel", ch) |
| 10 | |
| 11 | ch = NewNativeChannel(None) |
| 12 | testChannelPair(t, "bufferless native channel", ch, ch) |
| 13 | |
| 14 | ch = NewNativeChannel(5) |
| 15 | testChannel(t, "5-buffer native channel", ch) |
| 16 | |
| 17 | ch = NewNativeChannel(5) |
| 18 | testChannelPair(t, "5-buffer native channel", ch, ch) |
| 19 | |
| 20 | ch = NewNativeChannel(None) |
| 21 | testChannelConcurrentAccessors(t, "native channel", ch) |
| 22 | } |
| 23 | |
| 24 | func TestNativeInOutChannels(t *testing.T) { |
| 25 | ch1 := make(chan interface{}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…