mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 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) EXPECT

func (*DistributedLock) Lock

func (_mock *DistributedLock) Lock(ctx context.Context) (context.Context, error)

Lock provides a mock function for the type DistributedLock

func (*DistributedLock) Unlock

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

Unlock provides a mock function for the type DistributedLock

type DistributedLock_Expecter

type DistributedLock_Expecter struct {
	// contains filtered or unexported fields
}

func (*DistributedLock_Expecter) Lock

Lock is a helper method to define mock.On call

  • ctx context.Context

func (*DistributedLock_Expecter) Unlock

Unlock is a helper method to define mock.On call

  • ctx context.Context

type DistributedLock_Lock_Call

type DistributedLock_Lock_Call struct {
	*mock.Call
}

DistributedLock_Lock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Lock'

func (*DistributedLock_Lock_Call) Return

func (*DistributedLock_Lock_Call) Run

func (*DistributedLock_Lock_Call) RunAndReturn

type DistributedLock_Unlock_Call

type DistributedLock_Unlock_Call struct {
	*mock.Call
}

DistributedLock_Unlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unlock'

func (*DistributedLock_Unlock_Call) Return

func (*DistributedLock_Unlock_Call) Run

func (*DistributedLock_Unlock_Call) RunAndReturn

Jump to

Keyboard shortcuts

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