Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LockFileName ¶
LockFileName get the lock file name from the lock name.
Types ¶
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface
NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) Release ¶
func (_m *MockInterface) Release(lock *Lock) error
Release provides a mock function with given fields: lock
type MockInterface_Acquire_Call ¶
MockInterface_Acquire_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Acquire'
func (*MockInterface_Acquire_Call) Return ¶
func (_c *MockInterface_Acquire_Call) Return(_a0 *Lock, _a1 error) *MockInterface_Acquire_Call
func (*MockInterface_Acquire_Call) Run ¶
func (_c *MockInterface_Acquire_Call) Run(run func(ctx context.Context, name string)) *MockInterface_Acquire_Call
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) Acquire ¶
func (_e *MockInterface_Expecter) Acquire(ctx interface{}, name interface{}) *MockInterface_Acquire_Call
Acquire is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockInterface_Expecter) Release ¶
func (_e *MockInterface_Expecter) Release(lock interface{}) *MockInterface_Release_Call
Release is a helper method to define mock.On call
- lock *Lock
type MockInterface_Release_Call ¶
MockInterface_Release_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Release'
func (*MockInterface_Release_Call) Return ¶
func (_c *MockInterface_Release_Call) Return(_a0 error) *MockInterface_Release_Call
func (*MockInterface_Release_Call) Run ¶
func (_c *MockInterface_Release_Call) Run(run func(lock *Lock)) *MockInterface_Release_Call