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

Function Test_Observable_DefaultIfEmpty_Parallel_Empty

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

Source from the content-addressed store, hash-verified

415}
416
417func Test_Observable_DefaultIfEmpty_Parallel_Empty(t *testing.T) {
418 defer goleak.VerifyNone(t)
419 ctx, cancel := context.WithCancel(context.Background())
420 defer cancel()
421 obs := Empty().DefaultIfEmpty(3, WithCPUPool())
422 Assert(ctx, t, obs, HasItems(3))
423}
424
425func Test_Observable_DefaultIfEmpty_Parallel_NotEmpty(t *testing.T) {
426 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 5

EmptyFunction · 0.85
WithCPUPoolFunction · 0.85
AssertFunction · 0.85
HasItemsFunction · 0.85
DefaultIfEmptyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…