rotesting

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertSpec

type AssertSpec[T any] interface {
	Source(source ro.Observable[T]) AssertSpec[T]
	ExpectNext(value T, msgAndArgs ...any) AssertSpec[T]
	ExpectNextSeq(items ...T) AssertSpec[T]
	ExpectError(err error, msgAndArgs ...any) AssertSpec[T]
	ExpectComplete(msgAndArgs ...any) AssertSpec[T]
	Verify()
	VerifyWithContext(ctx context.Context)
}

AssertSpec is an interface that defines the methods to assert the behavior of an observable sequence. It is inspired by Flux.

Implementing this interface is optional. It is used to provide a more fluent API across different testing frameworks.

func Assert

func Assert[T any](t *testing.T) AssertSpec[T]

Assert creates a new instance of test. It is used to assert the behavior of an observable sequence.

Inspired by Flux.

Jump to

Keyboard shortcuts

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