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

Function Test_Observable_WindowWithCount_ZeroCount

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

Source from the content-addressed store, hash-verified

2275}
2276
2277func Test_Observable_WindowWithCount_ZeroCount(t *testing.T) {
2278 defer goleak.VerifyNone(t)
2279 ctx, cancel := context.WithCancel(context.Background())
2280 defer cancel()
2281 observe := testObservable(ctx, 1, 2, 3, 4, 5).WindowWithCount(0).Observe()
2282 Assert(ctx, t, (<-observe).V.(Observable), HasItems(1, 2, 3, 4, 5))
2283}
2284
2285func Test_Observable_WindowWithCount_ObservableError(t *testing.T) {
2286 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 5

testObservableFunction · 0.85
AssertFunction · 0.85
HasItemsFunction · 0.85
ObserveMethod · 0.65
WindowWithCountMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…