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

Function Test_Observable_AverageFloat32

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

Source from the content-addressed store, hash-verified

65}
66
67func Test_Observable_AverageFloat32(t *testing.T) {
68 defer goleak.VerifyNone(t)
69 ctx, cancel := context.WithCancel(context.Background())
70 defer cancel()
71 Assert(ctx, t, testObservable(ctx, float32(1), float32(20)).AverageFloat32(), HasItem(float32(10.5)))
72 Assert(ctx, t, testObservable(ctx, float64(1), float64(20)).AverageFloat32(), HasItem(float32(10.5)))
73}
74
75func Test_Observable_AverageFloat32_Empty(t *testing.T) {
76 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 4

AssertFunction · 0.85
testObservableFunction · 0.85
HasItemFunction · 0.85
AverageFloat32Method · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…