Documentation ¶
Index ¶
- type MockConfigurator
- type MockConfigurator_Delete_Call
- func (_c *MockConfigurator_Delete_Call) Return(_a0 error) *MockConfigurator_Delete_Call
- func (_c *MockConfigurator_Delete_Call) Run(run func(ctx context.Context)) *MockConfigurator_Delete_Call
- func (_c *MockConfigurator_Delete_Call) RunAndReturn(run func(context.Context) error) *MockConfigurator_Delete_Call
- type MockConfigurator_Expecter
- type MockConfigurator_Load_Call
- func (_c *MockConfigurator_Load_Call) Return(_a0 *app.Config, _a1 error) *MockConfigurator_Load_Call
- func (_c *MockConfigurator_Load_Call) Run(run func(ctx context.Context)) *MockConfigurator_Load_Call
- func (_c *MockConfigurator_Load_Call) RunAndReturn(run func(context.Context) (*app.Config, error)) *MockConfigurator_Load_Call
- type MockConfigurator_Save_Call
- func (_c *MockConfigurator_Save_Call) Return(_a0 error) *MockConfigurator_Save_Call
- func (_c *MockConfigurator_Save_Call) Run(run func(ctx context.Context, config *app.Config)) *MockConfigurator_Save_Call
- func (_c *MockConfigurator_Save_Call) RunAndReturn(run func(context.Context, *app.Config) error) *MockConfigurator_Save_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfigurator ¶
MockConfigurator is an autogenerated mock type for the Configurator type
func NewMockConfigurator ¶
func NewMockConfigurator(t interface { mock.TestingT Cleanup(func()) }) *MockConfigurator
NewMockConfigurator creates a new instance of MockConfigurator. 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 (*MockConfigurator) Delete ¶
func (_m *MockConfigurator) Delete(ctx context.Context) error
Delete provides a mock function with given fields: ctx
func (*MockConfigurator) EXPECT ¶
func (_m *MockConfigurator) EXPECT() *MockConfigurator_Expecter
type MockConfigurator_Delete_Call ¶
MockConfigurator_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockConfigurator_Delete_Call) Return ¶
func (_c *MockConfigurator_Delete_Call) Return(_a0 error) *MockConfigurator_Delete_Call
func (*MockConfigurator_Delete_Call) Run ¶
func (_c *MockConfigurator_Delete_Call) Run(run func(ctx context.Context)) *MockConfigurator_Delete_Call
func (*MockConfigurator_Delete_Call) RunAndReturn ¶
func (_c *MockConfigurator_Delete_Call) RunAndReturn(run func(context.Context) error) *MockConfigurator_Delete_Call
type MockConfigurator_Expecter ¶
type MockConfigurator_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConfigurator_Expecter) Delete ¶
func (_e *MockConfigurator_Expecter) Delete(ctx interface{}) *MockConfigurator_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
func (*MockConfigurator_Expecter) Load ¶
func (_e *MockConfigurator_Expecter) Load(ctx interface{}) *MockConfigurator_Load_Call
Load is a helper method to define mock.On call
- ctx context.Context
func (*MockConfigurator_Expecter) Save ¶
func (_e *MockConfigurator_Expecter) Save(ctx interface{}, config interface{}) *MockConfigurator_Save_Call
Save is a helper method to define mock.On call
- ctx context.Context
- config *app.Config
type MockConfigurator_Load_Call ¶
MockConfigurator_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*MockConfigurator_Load_Call) Return ¶
func (_c *MockConfigurator_Load_Call) Return(_a0 *app.Config, _a1 error) *MockConfigurator_Load_Call
func (*MockConfigurator_Load_Call) Run ¶
func (_c *MockConfigurator_Load_Call) Run(run func(ctx context.Context)) *MockConfigurator_Load_Call
func (*MockConfigurator_Load_Call) RunAndReturn ¶
func (_c *MockConfigurator_Load_Call) RunAndReturn(run func(context.Context) (*app.Config, error)) *MockConfigurator_Load_Call
type MockConfigurator_Save_Call ¶
MockConfigurator_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*MockConfigurator_Save_Call) Return ¶
func (_c *MockConfigurator_Save_Call) Return(_a0 error) *MockConfigurator_Save_Call
func (*MockConfigurator_Save_Call) Run ¶
func (_c *MockConfigurator_Save_Call) Run(run func(ctx context.Context, config *app.Config)) *MockConfigurator_Save_Call
func (*MockConfigurator_Save_Call) RunAndReturn ¶
func (_c *MockConfigurator_Save_Call) RunAndReturn(run func(context.Context, *app.Config) error) *MockConfigurator_Save_Call