MCPcopy Create free account
hub / github.com/ReactiveX/RxGo / Test_Observable_TimeInterval

Function Test_Observable_TimeInterval

observable_operator_test.go:2097–2108  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2095}
2096
2097func 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
2110func Test_Observable_Timestamp(t *testing.T) {
2111 defer goleak.VerifyNone(t)

Callers

nothing calls this directly

Calls 4

testObservableFunction · 0.85
AssertFunction · 0.85
CustomPredicateFunction · 0.85
TimeIntervalMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…