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

Function Test_Connectable_IterableChannel_Composed

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

Source from the content-addressed store, hash-verified

29}
30
31func Test_Connectable_IterableChannel_Composed(t *testing.T) {
32 defer goleak.VerifyNone(t)
33 ch := make(chan Item, 10)
34 go func() {
35 ch <- Of(1)
36 ch <- Of(2)
37 ch <- Of(3)
38 close(ch)
39 }()
40 obs := &ObservableImpl{
41 iterable: newChannelIterable(ch, WithPublishStrategy()),
42 }
43 testConnectableComposed(t, obs)
44}
45
46func Test_Connectable_IterableChannel_Disposed(t *testing.T) {
47 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 4

OfFunction · 0.85
newChannelIterableFunction · 0.85
WithPublishStrategyFunction · 0.85
testConnectableComposedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…