(t *testing.T)
| 484 | } |
| 485 | |
| 486 | func Test_Observable_Distinct_Parallel_Error2(t *testing.T) { |
| 487 | defer goleak.VerifyNone(t) |
| 488 | ctx, cancel := context.WithCancel(context.Background()) |
| 489 | defer cancel() |
| 490 | obs := testObservable(ctx, 1, 2, 2, 2, 3, 4).Distinct(func(_ context.Context, item interface{}) (interface{}, error) { |
| 491 | if item.(int) == 3 { |
| 492 | return nil, errFoo |
| 493 | } |
| 494 | return item, nil |
| 495 | }, WithContext(ctx), WithCPUPool()) |
| 496 | Assert(ctx, t, obs, HasError(errFoo)) |
| 497 | } |
| 498 | |
| 499 | func Test_Observable_DistinctUntilChanged(t *testing.T) { |
| 500 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…