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

Function Test_Observable_BufferWithTime_Single

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

Source from the content-addressed store, hash-verified

272}
273
274func Test_Observable_BufferWithTime_Single(t *testing.T) {
275 defer goleak.VerifyNone(t)
276 ctx, cancel := context.WithCancel(context.Background())
277 defer cancel()
278 obs := Just(1, 2, 3)().BufferWithTime(WithDuration(30 * time.Millisecond))
279 Assert(ctx, t, obs, HasItems(
280 []interface{}{1, 2, 3},
281 ))
282}
283
284func Test_Observable_BufferWithTime_Multiple(t *testing.T) {
285 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 5

JustFunction · 0.85
WithDurationFunction · 0.85
AssertFunction · 0.85
HasItemsFunction · 0.85
BufferWithTimeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…