frcasserts

package
v0.81.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 10 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,
	Timeout:      5 * time.Second,
}

Functions

func CountIs

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

func Create

func Create[Ent, ID any](tb testing.TB, subject sh.CRD[Ent, ID], ctx context.Context, ptr *Ent)

func Delete

func Delete[Ent, ID any](tb testing.TB, subject sh.CRD[Ent, ID], ctx context.Context, ptr *Ent)

func DeleteAll

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

func HasEntity

func HasEntity[Ent, ID any](tb testing.TB, subject crud.ByIDFinder[Ent, ID], ctx context.Context, ptr *Ent)

func HasID

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

func IsAbsent

func IsAbsent[Ent, ID any](tb testing.TB, subject crud.ByIDFinder[Ent, ID], ctx context.Context, id ID)

func IsFindable

func IsFindable[Ent, ID any](tb testing.TB, subject crud.ByIDFinder[Ent, ID], ctx context.Context, id ID) *Ent

func Update

func Update[Ent, ID any](tb testing.TB, subject updater[Ent, ID], ctx context.Context, ptr *Ent)

Types

This section is empty.

Jump to

Keyboard shortcuts

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