MCPcopy Create free account
hub / github.com/ReactiveX/RxGo / Test_Connectable_IterableChannel_Single

Function Test_Connectable_IterableChannel_Single

factory_connectable_test.go:16–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func Test_Connectable_IterableChannel_Single(t *testing.T) {
17 defer goleak.VerifyNone(t)
18 ch := make(chan Item, 10)
19 go func() {
20 ch <- Of(1)
21 ch <- Of(2)
22 ch <- Of(3)
23 close(ch)
24 }()
25 obs := &ObservableImpl{
26 iterable: newChannelIterable(ch, WithPublishStrategy()),
27 }
28 testConnectableSingle(t, obs)
29}
30
31func Test_Connectable_IterableChannel_Composed(t *testing.T) {
32 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 4

OfFunction · 0.85
newChannelIterableFunction · 0.85
WithPublishStrategyFunction · 0.85
testConnectableSingleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…