lockscontracts

package
v0.143.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 7 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

This section is empty.

Types

type Factory added in v0.105.0

type Factory[Key comparable] func(tb testing.TB) FactorySubject[Key]

func (Factory[Key]) Benchmark added in v0.105.0

func (c Factory[Key]) Benchmark(b *testing.B)

func (Factory[Key]) Spec added in v0.105.0

func (c Factory[Key]) Spec(s *testcase.Spec)

func (Factory[Key]) Test added in v0.105.0

func (c Factory[Key]) Test(t *testing.T)

type FactorySubject added in v0.132.0

type FactorySubject[Key comparable] struct {
	Factory     locks.Factory[Key]
	MakeContext func() context.Context
	MakeKey     func() Key
}

type Locker

type Locker func(testing.TB) LockerSubject

func (Locker) Benchmark

func (c Locker) Benchmark(b *testing.B)

func (Locker) Spec

func (c Locker) Spec(s *testcase.Spec)

func (Locker) Test

func (c Locker) Test(t *testing.T)

type LockerSubject added in v0.132.0

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

Jump to

Keyboard shortcuts

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