spechelper

package
v0.165.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 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 added in v0.125.0

func MakeContext(tb testing.TB) context.Context

func TryCleanup added in v0.80.0

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

Types

type CRD added in v0.71.0

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 added in v0.53.0

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