Documentation ¶
Overview ¶
Package mock_locker is a generated GoMock package.
Index ¶
- type MockLocker
- func (m *MockLocker) Close() error
- func (m *MockLocker) EXPECT() *MockLockerMockRecorder
- func (m *MockLocker) LockContext(arg0 context.Context, arg1 time.Duration) error
- func (m *MockLocker) Read(p []byte) (int, error)
- func (m *MockLocker) Seek(offset int64, whence int) (int64, error)
- func (m *MockLocker) TryLock() error
- func (m *MockLocker) UnLock() error
- func (m *MockLocker) Write(p []byte) (int, error)
- type MockLockerMockRecorder
- func (mr *MockLockerMockRecorder) Close() *gomock.Call
- func (mr *MockLockerMockRecorder) LockContext(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockLockerMockRecorder) Read(p interface{}) *gomock.Call
- func (mr *MockLockerMockRecorder) Seek(offset, whence interface{}) *gomock.Call
- func (mr *MockLockerMockRecorder) TryLock() *gomock.Call
- func (mr *MockLockerMockRecorder) UnLock() *gomock.Call
- func (mr *MockLockerMockRecorder) Write(p interface{}) *gomock.Call
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) EXPECT ¶
func (m *MockLocker) EXPECT() *MockLockerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLocker) LockContext ¶
LockContext 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.
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.