rxtest

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrComplete = errors.New("complete")
	ErrTest     = errors.New("test")
)

Functions

func AddLatencyToNotifications

func AddLatencyToNotifications[T any](initialDelay, period int) rx.Operator[T, T]

func AddLatencyToValues

func AddLatencyToValues[T any](initialDelay, period int) rx.Operator[T, T]

func DelaySubscription

func DelaySubscription[T any](n int) rx.Operator[T, T]

func Step

func Step(n int) time.Duration

func ToString

func ToString[T any]() rx.Operator[T, string]

Types

type TestSuite added in v0.5.0

type TestSuite[T any] struct {
	// contains filtered or unexported fields
}

func NewTestSuite added in v0.5.0

func NewTestSuite[T any](tb testing.TB) *TestSuite[T]

func (*TestSuite[T]) Case added in v0.5.0

func (s *TestSuite[T]) Case(ob rx.Observable[T], output ...any) *TestSuite[T]

func (*TestSuite[T]) WithContext added in v0.7.0

func (s *TestSuite[T]) WithContext(c rx.Context) *TestSuite[T]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL