(t *testing.T)
| 800 | } |
| 801 | |
| 802 | func Test_Observable_FlatMap_Parallel(t *testing.T) { |
| 803 | defer goleak.VerifyNone(t) |
| 804 | ctx, cancel := context.WithCancel(context.Background()) |
| 805 | defer cancel() |
| 806 | obs := testObservable(ctx, 1, 2, 3).FlatMap(func(i Item) Observable { |
| 807 | return testObservable(ctx, i.V.(int)+1, i.V.(int)*10) |
| 808 | }, WithCPUPool()) |
| 809 | Assert(ctx, t, obs, HasItemsNoOrder(2, 10, 3, 20, 4, 30)) |
| 810 | } |
| 811 | |
| 812 | func Test_Observable_FlatMap_Parallel_Error1(t *testing.T) { |
| 813 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…