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

Function Test_Observable_ElementAt

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

Source from the content-addressed store, hash-verified

583}
584
585func Test_Observable_ElementAt(t *testing.T) {
586 defer goleak.VerifyNone(t)
587 ctx, cancel := context.WithCancel(context.Background())
588 defer cancel()
589 obs := Range(0, 10000).ElementAt(9999)
590 Assert(ctx, t, obs, HasItems(9999))
591}
592
593func Test_Observable_ElementAt_Parallel(t *testing.T) {
594 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 4

RangeFunction · 0.85
AssertFunction · 0.85
HasItemsFunction · 0.85
ElementAtMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…