(t *testing.T)
| 2265 | } |
| 2266 | |
| 2267 | func Test_Observable_WindowWithCount(t *testing.T) { |
| 2268 | defer goleak.VerifyNone(t) |
| 2269 | ctx, cancel := context.WithCancel(context.Background()) |
| 2270 | defer cancel() |
| 2271 | observe := testObservable(ctx, 1, 2, 3, 4, 5).WindowWithCount(2).Observe() |
| 2272 | Assert(ctx, t, (<-observe).V.(Observable), HasItems(1, 2)) |
| 2273 | Assert(ctx, t, (<-observe).V.(Observable), HasItems(3, 4)) |
| 2274 | Assert(ctx, t, (<-observe).V.(Observable), HasItems(5)) |
| 2275 | } |
| 2276 | |
| 2277 | func Test_Observable_WindowWithCount_ZeroCount(t *testing.T) { |
| 2278 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…