(t *testing.T)
| 474 | } |
| 475 | |
| 476 | func Test_Observable_Distinct_Parallel_Error(t *testing.T) { |
| 477 | defer goleak.VerifyNone(t) |
| 478 | ctx, cancel := context.WithCancel(context.Background()) |
| 479 | defer cancel() |
| 480 | obs := testObservable(ctx, 1, 2, 2, errFoo).Distinct(func(_ context.Context, item interface{}) (interface{}, error) { |
| 481 | return item, nil |
| 482 | }, WithContext(ctx), WithCPUPool()) |
| 483 | Assert(ctx, t, obs, HasError(errFoo)) |
| 484 | } |
| 485 | |
| 486 | func Test_Observable_Distinct_Parallel_Error2(t *testing.T) { |
| 487 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…