Documentation ¶
Index ¶
- type MockMutex
- type MockMutexProvider
- type MockMutexProvider_Expecter
- type MockMutexProvider_ProvideCreateUserMutex_Call
- func (_c *MockMutexProvider_ProvideCreateUserMutex_Call) Return(_a0 mutex.Mutex) *MockMutexProvider_ProvideCreateUserMutex_Call
- func (_c *MockMutexProvider_ProvideCreateUserMutex_Call) Run(run func(username string)) *MockMutexProvider_ProvideCreateUserMutex_Call
- func (_c *MockMutexProvider_ProvideCreateUserMutex_Call) RunAndReturn(run func(string) mutex.Mutex) *MockMutexProvider_ProvideCreateUserMutex_Call
- type MockMutex_Expecter
- type MockMutex_Lock_Call
- type MockMutex_Unlock_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMutex ¶
MockMutex is an autogenerated mock type for the Mutex type
func NewMockMutex ¶
NewMockMutex creates a new instance of MockMutex. 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 (*MockMutex) EXPECT ¶
func (_m *MockMutex) EXPECT() *MockMutex_Expecter
type MockMutexProvider ¶
MockMutexProvider is an autogenerated mock type for the MutexProvider type
func NewMockMutexProvider ¶
func NewMockMutexProvider(t interface { mock.TestingT Cleanup(func()) }) *MockMutexProvider
NewMockMutexProvider creates a new instance of MockMutexProvider. 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 (*MockMutexProvider) EXPECT ¶
func (_m *MockMutexProvider) EXPECT() *MockMutexProvider_Expecter
func (*MockMutexProvider) ProvideCreateUserMutex ¶
func (_m *MockMutexProvider) ProvideCreateUserMutex(username string) mutex.Mutex
ProvideCreateUserMutex provides a mock function with given fields: username
type MockMutexProvider_Expecter ¶
type MockMutexProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMutexProvider_Expecter) ProvideCreateUserMutex ¶
func (_e *MockMutexProvider_Expecter) ProvideCreateUserMutex(username interface{}) *MockMutexProvider_ProvideCreateUserMutex_Call
ProvideCreateUserMutex is a helper method to define mock.On call
- username string
type MockMutexProvider_ProvideCreateUserMutex_Call ¶
MockMutexProvider_ProvideCreateUserMutex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProvideCreateUserMutex'
func (*MockMutexProvider_ProvideCreateUserMutex_Call) Return ¶
func (_c *MockMutexProvider_ProvideCreateUserMutex_Call) Return(_a0 mutex.Mutex) *MockMutexProvider_ProvideCreateUserMutex_Call
func (*MockMutexProvider_ProvideCreateUserMutex_Call) Run ¶
func (_c *MockMutexProvider_ProvideCreateUserMutex_Call) Run(run func(username string)) *MockMutexProvider_ProvideCreateUserMutex_Call
func (*MockMutexProvider_ProvideCreateUserMutex_Call) RunAndReturn ¶
func (_c *MockMutexProvider_ProvideCreateUserMutex_Call) RunAndReturn(run func(string) mutex.Mutex) *MockMutexProvider_ProvideCreateUserMutex_Call
type MockMutex_Expecter ¶
type MockMutex_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMutex_Expecter) Lock ¶
func (_e *MockMutex_Expecter) Lock(ctx interface{}) *MockMutex_Lock_Call
Lock is a helper method to define mock.On call
- ctx context.Context
func (*MockMutex_Expecter) Unlock ¶
func (_e *MockMutex_Expecter) Unlock(ctx interface{}) *MockMutex_Unlock_Call
Unlock is a helper method to define mock.On call
- ctx context.Context
type MockMutex_Lock_Call ¶
MockMutex_Lock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Lock'
func (*MockMutex_Lock_Call) Return ¶
func (_c *MockMutex_Lock_Call) Return(_a0 error) *MockMutex_Lock_Call
func (*MockMutex_Lock_Call) Run ¶
func (_c *MockMutex_Lock_Call) Run(run func(ctx context.Context)) *MockMutex_Lock_Call
func (*MockMutex_Lock_Call) RunAndReturn ¶
func (_c *MockMutex_Lock_Call) RunAndReturn(run func(context.Context) error) *MockMutex_Lock_Call
type MockMutex_Unlock_Call ¶
MockMutex_Unlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unlock'
func (*MockMutex_Unlock_Call) Return ¶
func (_c *MockMutex_Unlock_Call) Return(ok bool, err error) *MockMutex_Unlock_Call
func (*MockMutex_Unlock_Call) Run ¶
func (_c *MockMutex_Unlock_Call) Run(run func(ctx context.Context)) *MockMutex_Unlock_Call
func (*MockMutex_Unlock_Call) RunAndReturn ¶
func (_c *MockMutex_Unlock_Call) RunAndReturn(run func(context.Context) (bool, error)) *MockMutex_Unlock_Call