(t *testing.T)
| 2038 | } |
| 2039 | |
| 2040 | func Test_Observable_Take_Interval(t *testing.T) { |
| 2041 | defer goleak.VerifyNone(t) |
| 2042 | ctx, cancel := context.WithCancel(context.Background()) |
| 2043 | defer cancel() |
| 2044 | obs := Interval(WithDuration(time.Nanosecond), WithContext(ctx)).Take(3) |
| 2045 | Assert(ctx, t, obs, CustomPredicate(func(items []interface{}) error { |
| 2046 | if len(items) != 3 { |
| 2047 | return errors.New("3 items are expected") |
| 2048 | } |
| 2049 | return nil |
| 2050 | })) |
| 2051 | } |
| 2052 | |
| 2053 | func Test_Observable_TakeLast(t *testing.T) { |
| 2054 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…