guardcontracts

package
v0.162.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Waiter = assert.Waiter{
	WaitDuration: time.Millisecond,
	Timeout:      5 * time.Second,
}

Functions

func Locker

func Locker(mk func(testing.TB) LockerSubject) suites.Suite

func LockerFactory

func LockerFactory[Key comparable](mk func(tb testing.TB) LockerFactorySubject[Key]) suites.Suite

Types

type LockerFactorySubject

type LockerFactorySubject[Key comparable] struct {
	LockerFactory guard.LockerFactory[Key]
	MakeContext   func() context.Context
	MakeKey       func() Key
}

type LockerSubject

type LockerSubject struct {
	Locker      guard.Locker
	MakeContext func() context.Context
}

Jump to

Keyboard shortcuts

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