mocks

package
v0.0.0-...-06bcc1c Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 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 DistributedLock

type DistributedLock struct {
	mock.Mock
}

DistributedLock is an autogenerated mock type for the DistributedLock type

func NewDistributedLock

func NewDistributedLock(t interface {
	mock.TestingT
	Cleanup(func())
}) *DistributedLock

NewDistributedLock creates a new instance of DistributedLock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DistributedLock) Lock

Lock provides a mock function with given fields: ctx

func (*DistributedLock) TryLock

func (_m *DistributedLock) TryLock(ctx context.Context) (context.Context, error)

TryLock provides a mock function with given fields: ctx

func (*DistributedLock) Unlock

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

Unlock 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