lockscontracts

package
v0.130.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 8 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] struct {
	MakeSubject func(tb testing.TB) locks.Factory[Key]
	MakeContext func(tb testing.TB) context.Context
	MakeKey     func(tb testing.TB) 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 Locker

type Locker struct {
	MakeSubject func(testing.TB) locks.Locker
	MakeContext func(testing.TB) context.Context
}

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)

Jump to

Keyboard shortcuts

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