mock_locker

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_locker is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Close

func (m *MockLocker) Close() error

Close mocks base method.

func (*MockLocker) EXPECT

func (m *MockLocker) EXPECT() *MockLockerMockRecorder

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

func (*MockLocker) LockContext

func (m *MockLocker) LockContext(arg0 context.Context, arg1 time.Duration) error

LockContext mocks base method.

func (*MockLocker) Read

func (m *MockLocker) Read(p []byte) (int, error)

Read mocks base method.

func (*MockLocker) Seek

func (m *MockLocker) Seek(offset int64, whence int) (int64, error)

Seek mocks base method.

func (*MockLocker) TryLock added in v1.0.3

func (m *MockLocker) TryLock() error

TryLock mocks base method.

func (*MockLocker) UnLock

func (m *MockLocker) UnLock() error

UnLock mocks base method.

func (*MockLocker) Write

func (m *MockLocker) Write(p []byte) (int, error)

Write mocks base method.

type MockLockerMockRecorder

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

MockLockerMockRecorder is the mock recorder for MockLocker.

func (*MockLockerMockRecorder) Close

func (mr *MockLockerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockLockerMockRecorder) LockContext

func (mr *MockLockerMockRecorder) LockContext(arg0, arg1 interface{}) *gomock.Call

LockContext indicates an expected call of LockContext.

func (*MockLockerMockRecorder) Read

func (mr *MockLockerMockRecorder) Read(p interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockLockerMockRecorder) Seek

func (mr *MockLockerMockRecorder) Seek(offset, whence interface{}) *gomock.Call

Seek indicates an expected call of Seek.

func (*MockLockerMockRecorder) TryLock added in v1.0.3

func (mr *MockLockerMockRecorder) TryLock() *gomock.Call

TryLock indicates an expected call of TryLock.

func (*MockLockerMockRecorder) UnLock

func (mr *MockLockerMockRecorder) UnLock() *gomock.Call

UnLock indicates an expected call of UnLock.

func (*MockLockerMockRecorder) Write

func (mr *MockLockerMockRecorder) Write(p interface{}) *gomock.Call

Write indicates an expected call of Write.

Jump to

Keyboard shortcuts

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