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

Function Test_Observable_ElementAt_Error

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

Source from the content-addressed store, hash-verified

599}
600
601func Test_Observable_ElementAt_Error(t *testing.T) {
602 defer goleak.VerifyNone(t)
603 ctx, cancel := context.WithCancel(context.Background())
604 defer cancel()
605 obs := testObservable(ctx, 0, 1, 2, 3, 4).ElementAt(10)
606 Assert(ctx, t, obs, IsEmpty(), HasAnError())
607}
608
609func Test_Observable_Error_NoError(t *testing.T) {
610 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 5

testObservableFunction · 0.85
AssertFunction · 0.85
IsEmptyFunction · 0.85
HasAnErrorFunction · 0.85
ElementAtMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…