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

Function Test_Observable_AverageFloat64_Parallel_Empty

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

Source from the content-addressed store, hash-verified

140}
141
142func Test_Observable_AverageFloat64_Parallel_Empty(t *testing.T) {
143 defer goleak.VerifyNone(t)
144 ctx, cancel := context.WithCancel(context.Background())
145 defer cancel()
146 Assert(ctx, t, Empty().AverageFloat64(WithContext(ctx), WithCPUPool()),
147 HasItem(0))
148}
149
150func Test_Observable_AverageFloat64_Parallel_Error(t *testing.T) {
151 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 6

AssertFunction · 0.85
EmptyFunction · 0.85
WithContextFunction · 0.85
WithCPUPoolFunction · 0.85
HasItemFunction · 0.85
AverageFloat64Method · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…