Documentation
¶
Index ¶
- type DistributedLock
- type DistributedLock_Expecter
- type DistributedLock_Lock_Call
- func (_c *DistributedLock_Lock_Call) Return(context1 context.Context, err error) *DistributedLock_Lock_Call
- func (_c *DistributedLock_Lock_Call) Run(run func(ctx context.Context)) *DistributedLock_Lock_Call
- func (_c *DistributedLock_Lock_Call) RunAndReturn(run func(ctx context.Context) (context.Context, error)) *DistributedLock_Lock_Call
- type DistributedLock_Unlock_Call
- func (_c *DistributedLock_Unlock_Call) Return(err error) *DistributedLock_Unlock_Call
- func (_c *DistributedLock_Unlock_Call) Run(run func(ctx context.Context)) *DistributedLock_Unlock_Call
- func (_c *DistributedLock_Unlock_Call) RunAndReturn(run func(ctx context.Context) error) *DistributedLock_Unlock_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributedLock ¶
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 (_m *DistributedLock) EXPECT() *DistributedLock_Expecter
type DistributedLock_Expecter ¶
type DistributedLock_Expecter struct {
// contains filtered or unexported fields
}
func (*DistributedLock_Expecter) Lock ¶
func (_e *DistributedLock_Expecter) Lock(ctx any) *DistributedLock_Lock_Call
Lock is a helper method to define mock.On call
- ctx context.Context
func (*DistributedLock_Expecter) Unlock ¶
func (_e *DistributedLock_Expecter) Unlock(ctx any) *DistributedLock_Unlock_Call
Unlock is a helper method to define mock.On call
- ctx context.Context
type DistributedLock_Lock_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 (_c *DistributedLock_Lock_Call) Return(context1 context.Context, err error) *DistributedLock_Lock_Call
func (*DistributedLock_Lock_Call) Run ¶
func (_c *DistributedLock_Lock_Call) Run(run func(ctx context.Context)) *DistributedLock_Lock_Call
func (*DistributedLock_Lock_Call) RunAndReturn ¶
func (_c *DistributedLock_Lock_Call) RunAndReturn(run func(ctx context.Context) (context.Context, error)) *DistributedLock_Lock_Call
type DistributedLock_Unlock_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 (_c *DistributedLock_Unlock_Call) Return(err error) *DistributedLock_Unlock_Call
func (*DistributedLock_Unlock_Call) Run ¶
func (_c *DistributedLock_Unlock_Call) Run(run func(ctx context.Context)) *DistributedLock_Unlock_Call
func (*DistributedLock_Unlock_Call) RunAndReturn ¶
func (_c *DistributedLock_Unlock_Call) RunAndReturn(run func(ctx context.Context) error) *DistributedLock_Unlock_Call