(t *testing.T)
| 2095 | } |
| 2096 | |
| 2097 | func Test_Observable_TimeInterval(t *testing.T) { |
| 2098 | defer goleak.VerifyNone(t) |
| 2099 | ctx, cancel := context.WithCancel(context.Background()) |
| 2100 | defer cancel() |
| 2101 | obs := testObservable(ctx, 1, 2, 3).TimeInterval() |
| 2102 | Assert(ctx, t, obs, CustomPredicate(func(items []interface{}) error { |
| 2103 | if len(items) != 3 { |
| 2104 | return fmt.Errorf("expected 3 items, got %d items", len(items)) |
| 2105 | } |
| 2106 | return nil |
| 2107 | })) |
| 2108 | } |
| 2109 | |
| 2110 | func Test_Observable_Timestamp(t *testing.T) { |
| 2111 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…