spechelper

package
v0.178.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ContextVar = testcase.Var[context.Context]{
	ID: "context.Context",
	Init: func(t *testcase.T) context.Context {
		return context.Background()
	},
}

Functions

func MakeContext

func MakeContext(tb testing.TB) context.Context

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