MCPcopy Create free account
hub / github.com/eapache/channels / TestNativeChannels

Function TestNativeChannels

native_channel_test.go:5–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3import "testing"
4
5func 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
24func TestNativeInOutChannels(t *testing.T) {
25 ch1 := make(chan interface{})

Callers

nothing calls this directly

Calls 4

NewNativeChannelFunction · 0.85
testChannelFunction · 0.85
testChannelPairFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…