mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLock

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

MockLock is a mock of Lock interface.

func NewMockLock

func NewMockLock(ctrl *gomock.Controller) *MockLock

NewMockLock creates a new mock instance.

func (*MockLock) EXPECT

func (m *MockLock) EXPECT() *MockLockMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLock) Renew

func (m *MockLock) Renew(arg0 context.Context, arg1 ...time.Duration) error

Renew mocks base method.

func (*MockLock) Unlock

func (m *MockLock) Unlock(arg0 context.Context) error

Unlock mocks base method.

type MockLockMockRecorder

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

MockLockMockRecorder is the mock recorder for MockLock.

func (*MockLockMockRecorder) Renew

func (mr *MockLockMockRecorder) Renew(arg0 any, arg1 ...any) *gomock.Call

Renew indicates an expected call of Renew.

func (*MockLockMockRecorder) Unlock

func (mr *MockLockMockRecorder) Unlock(arg0 any) *gomock.Call

Unlock indicates an expected call of Unlock.

type MockLocker

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

MockLocker is a mock of Locker interface.

func NewMockLocker

func NewMockLocker(ctrl *gomock.Controller) *MockLocker

NewMockLocker creates a new mock instance.

func (*MockLocker) Acquire

func (m *MockLocker) Acquire(arg0 context.Context, arg1 string, arg2, arg3 time.Duration) (definition.Lock, error)

Acquire mocks base method.

func (*MockLocker) AcquireWithRenew

func (m *MockLocker) AcquireWithRenew(arg0 context.Context, arg1 string, arg2, arg3 time.Duration) error

AcquireWithRenew mocks base method.

func (*MockLocker) EXPECT

func (m *MockLocker) EXPECT() *MockLockerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockLockerMockRecorder

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

MockLockerMockRecorder is the mock recorder for MockLocker.

func (*MockLockerMockRecorder) Acquire

func (mr *MockLockerMockRecorder) Acquire(arg0, arg1, arg2, arg3 any) *gomock.Call

Acquire indicates an expected call of Acquire.

func (*MockLockerMockRecorder) AcquireWithRenew

func (mr *MockLockerMockRecorder) AcquireWithRenew(arg0, arg1, arg2, arg3 any) *gomock.Call

AcquireWithRenew indicates an expected call of AcquireWithRenew.

Jump to

Keyboard shortcuts

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