(t *testing.T)
| 399 | } |
| 400 | |
| 401 | func Test_Observable_DefaultIfEmpty_Empty(t *testing.T) { |
| 402 | defer goleak.VerifyNone(t) |
| 403 | ctx, cancel := context.WithCancel(context.Background()) |
| 404 | defer cancel() |
| 405 | obs := Empty().DefaultIfEmpty(3) |
| 406 | Assert(ctx, t, obs, HasItems(3)) |
| 407 | } |
| 408 | |
| 409 | func Test_Observable_DefaultIfEmpty_NotEmpty(t *testing.T) { |
| 410 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…