asserts

package
v0.63.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Eventually = testcase.Eventually{
	RetryStrategy: &Waiter,
}
View Source
var Waiter = testcase.Waiter{
	WaitDuration: time.Millisecond,
	WaitTimeout:  5 * time.Second,
}

Functions

func CountIs

func CountIs[T any](tb testing.TB, iter frameless.Iterator[T], expected int)

func Create

func Create[T any, ID any](tb testing.TB, subject resource[T, ID], ctx context.Context, ptr *T)

func Delete

func Delete[T, ID any](tb testing.TB, subject resource[T, ID], ctx context.Context, ptr *T)

func DeleteAll

func DeleteAll[T any, ID any](tb testing.TB, subject resource[T, ID], ctx context.Context)

func HasEntity

func HasEntity[T any, ID any](tb testing.TB, subject frameless.Finder[T, ID], ctx context.Context, ptr *T)

func HasID

func HasID[T any, ID any](tb testing.TB, ptr *T) (id ID)

func IsAbsent

func IsAbsent[T any, ID any](tb testing.TB, subject frameless.Finder[T, ID], ctx context.Context, id ID)

func IsFindable

func IsFindable[T any, ID any](tb testing.TB, subject frameless.Finder[T, ID], ctx context.Context, id ID) *T

func Update

func Update[T any, ID any](tb testing.TB, subject interface {
	frameless.Finder[T, ID]
	frameless.Updater[T]
	frameless.Deleter[ID]
}, ctx context.Context, ptr *T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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