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

Function Test_Observable_BufferWithCount_Error

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

Source from the content-addressed store, hash-verified

256}
257
258func Test_Observable_BufferWithCount_Error(t *testing.T) {
259 defer goleak.VerifyNone(t)
260 ctx, cancel := context.WithCancel(context.Background())
261 defer cancel()
262 obs := testObservable(ctx, 1, 2, 3, 4, errFoo).BufferWithCount(3)
263 Assert(ctx, t, obs, HasItems([]interface{}{1, 2, 3}, []interface{}{4}), HasError(errFoo))
264}
265
266func Test_Observable_BufferWithCount_InputError(t *testing.T) {
267 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 5

testObservableFunction · 0.85
AssertFunction · 0.85
HasItemsFunction · 0.85
HasErrorFunction · 0.85
BufferWithCountMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…