(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func 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 | |
| 75 | func Test_Observable_AverageFloat32_Empty(t *testing.T) { |
| 76 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…