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

Function Test_Observable_Debounce_Error

observable_operator_test.go:392–399  ·  view source on GitHub ↗

FIXME func Test_Observable_Debounce(t *testing.T) { defer goleak.VerifyNone(t) ctx, obs, d := timeCausality(1, tick, 2, tick, 3, 4, 5, tick, 6, tick) Assert(ctx, t, obs.Debounce(d, WithBufferedChannel(10), WithContext(ctx)), HasItems(1, 2, 5, 6)) }

(t *testing.T)

Source from the content-addressed store, hash-verified

390//}
391
392func Test_Observable_Debounce_Error(t *testing.T) {
393 defer goleak.VerifyNone(t)
394 ctx, obs, d := timeCausality(1, tick, 2, tick, 3, errFoo, 5, tick, 6, tick)
395 ctx, cancel := context.WithCancel(ctx)
396 defer cancel()
397 Assert(ctx, t, obs.Debounce(d, WithBufferedChannel(10), WithContext(ctx)),
398 HasItems(1, 2), HasError(errFoo))
399}
400
401func Test_Observable_DefaultIfEmpty_Empty(t *testing.T) {
402 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 7

timeCausalityFunction · 0.85
AssertFunction · 0.85
WithBufferedChannelFunction · 0.85
WithContextFunction · 0.85
HasItemsFunction · 0.85
HasErrorFunction · 0.85
DebounceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…