(t *testing.T)
| 173 | } |
| 174 | |
| 175 | func Test_Defer(t *testing.T) { |
| 176 | defer goleak.VerifyNone(t) |
| 177 | obs := Defer([]Producer{func(ctx context.Context, next chan<- Item) { |
| 178 | next <- Of(1) |
| 179 | next <- Of(2) |
| 180 | next <- Of(3) |
| 181 | }}) |
| 182 | Assert(context.Background(), t, obs, HasItems(1, 2, 3), HasNoError()) |
| 183 | } |
| 184 | |
| 185 | func Test_Defer_Multiple(t *testing.T) { |
| 186 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…