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

Function Test_Just_ComposedCapacity

factory_test.go:414–425  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

412}
413
414func Test_Just_ComposedCapacity(t *testing.T) {
415 defer goleak.VerifyNone(t)
416 obs1 := Just(1)().Map(func(_ context.Context, _ interface{}) (interface{}, error) {
417 return 1, nil
418 }, WithBufferedChannel(11))
419 assert.Equal(t, 11, cap(obs1.Observe()))
420
421 obs2 := obs1.Map(func(_ context.Context, _ interface{}) (interface{}, error) {
422 return 1, nil
423 }, WithBufferedChannel(12))
424 assert.Equal(t, 12, cap(obs2.Observe()))
425}
426
427func Test_Merge(t *testing.T) {
428 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 4

JustFunction · 0.85
WithBufferedChannelFunction · 0.85
MapMethod · 0.65
ObserveMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…