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

Function Test_Observable_Distinct_Parallel_Error

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

Source from the content-addressed store, hash-verified

474}
475
476func 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
486func Test_Observable_Distinct_Parallel_Error2(t *testing.T) {
487 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 6

testObservableFunction · 0.85
WithContextFunction · 0.85
WithCPUPoolFunction · 0.85
AssertFunction · 0.85
HasErrorFunction · 0.85
DistinctMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…