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

Function Test_Observable_Send

observable_operator_test.go:1755–1765  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1753}
1754
1755func Test_Observable_Send(t *testing.T) {
1756 defer goleak.VerifyNone(t)
1757 ctx, cancel := context.WithCancel(context.Background())
1758 defer cancel()
1759 ch := make(chan Item, 10)
1760 testObservable(ctx, 1, 2, 3, errFoo).Send(ch)
1761 assert.Equal(t, Of(1), <-ch)
1762 assert.Equal(t, Of(2), <-ch)
1763 assert.Equal(t, Of(3), <-ch)
1764 assert.Equal(t, Error(errFoo), <-ch)
1765}
1766
1767type message struct {
1768 id int

Callers

nothing calls this directly

Calls 4

testObservableFunction · 0.85
OfFunction · 0.85
ErrorFunction · 0.85
SendMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…