spechelper

package
v0.235.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ErrIDRequired errorkit.Error = `` /* 174-byte string literal not displayed */

Variables

This section is empty.

Functions

func MakeEntity added in v0.217.0

func MakeEntity[Entity, ID any](tb testing.TB) Entity

func MakeValue added in v0.217.0

func MakeValue[T any](tb testing.TB) T

func TryCleanup

func TryCleanup(tb testing.TB, ctx context.Context, resource any) bool

Types

type CRD

type CRD[Entity, ID any] interface {
	crud.Creator[Entity]
	crud.ByIDFinder[Entity, ID]
	crud.ByIDDeleter[ID]
}

CRD is the minimum requirements to write easily behavioral specification for a resource.

type CRUD

type CRUD[Entity, ID any] interface {
	CRD[Entity, ID]
	crud.Updater[Entity]
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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