spechelper

package
v0.300.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeEntity

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

func MakeValue

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