mocks

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

type Locker struct {
	mock.Mock
}

Locker is an autogenerated mock type for the Locker type

func NewLocker

func NewLocker(t mockConstructorTestingTNewLocker) *Locker

NewLocker creates a new instance of Locker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Locker) Close

func (_m *Locker) Close() error

Close provides a mock function with given fields:

func (*Locker) Lock

func (_m *Locker) Lock(ctx context.Context) (bool, error)

Lock provides a mock function with given fields: ctx

func (*Locker) Unlock

func (_m *Locker) Unlock(ctx context.Context) error

Unlock provides a mock function with given fields: ctx

func (*Locker) WaitAndLock

func (_m *Locker) WaitAndLock(ctx context.Context) error

WaitAndLock provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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