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

Function Test_Observable_AverageFloat64_Parallel

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

Source from the content-addressed store, hash-verified

133}
134
135func Test_Observable_AverageFloat64_Parallel(t *testing.T) {
136 defer goleak.VerifyNone(t)
137 ctx, cancel := context.WithCancel(context.Background())
138 defer cancel()
139 Assert(ctx, t, testObservable(ctx, float64(1), float64(20)).AverageFloat64(), HasItem(float64(10.5)))
140}
141
142func Test_Observable_AverageFloat64_Parallel_Empty(t *testing.T) {
143 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 4

AssertFunction · 0.85
testObservableFunction · 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…