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

Function Test_Defer_Error

factory_test.go:260–268  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

258}
259
260func Test_Defer_Error(t *testing.T) {
261 defer goleak.VerifyNone(t)
262 obs := Defer([]Producer{func(ctx context.Context, next chan<- Item) {
263 next <- Of(1)
264 next <- Of(2)
265 next <- Error(errFoo)
266 }})
267 Assert(context.Background(), t, obs, HasItems(1, 2), HasError(errFoo))
268}
269
270func Test_Empty(t *testing.T) {
271 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 6

DeferFunction · 0.85
OfFunction · 0.85
ErrorFunction · 0.85
AssertFunction · 0.85
HasItemsFunction · 0.85
HasErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…