(t *testing.T)
| 258 | } |
| 259 | |
| 260 | func 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 | |
| 270 | func Test_Empty(t *testing.T) { |
| 271 | defer goleak.VerifyNone(t) |