// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "github.com/bnema/dumber/internal/application/port" mock "github.com/stretchr/testify/mock" ) // NewMockContextMenuBuilder creates a new instance of MockContextMenuBuilder. 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 NewMockContextMenuBuilder(t interface { mock.TestingT Cleanup(func()) }) *MockContextMenuBuilder { mock := &MockContextMenuBuilder{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockContextMenuBuilder is an autogenerated mock type for the ContextMenuBuilder type type MockContextMenuBuilder struct { mock.Mock } type MockContextMenuBuilder_Expecter struct { mock *mock.Mock } func (_m *MockContextMenuBuilder) EXPECT() *MockContextMenuBuilder_Expecter { return &MockContextMenuBuilder_Expecter{mock: &_m.Mock} } // Build provides a mock function for the type MockContextMenuBuilder func (_mock *MockContextMenuBuilder) Build(ctx context.Context, menuContext port.MenuContext) []port.MenuItem { ret := _mock.Called(ctx, menuContext) if len(ret) == 0 { panic("no return value specified for Build") } var r0 []port.MenuItem if returnFunc, ok := ret.Get(0).(func(context.Context, port.MenuContext) []port.MenuItem); ok { r0 = returnFunc(ctx, menuContext) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]port.MenuItem) } } return r0 } // MockContextMenuBuilder_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build' type MockContextMenuBuilder_Build_Call struct { *mock.Call } // Build is a helper method to define mock.On call // - ctx context.Context // - menuContext port.MenuContext func (_e *MockContextMenuBuilder_Expecter) Build(ctx any, menuContext any) *MockContextMenuBuilder_Build_Call { return &MockContextMenuBuilder_Build_Call{Call: _e.mock.On("Build", ctx, menuContext)} } func (_c *MockContextMenuBuilder_Build_Call) Run(run func(ctx context.Context, menuContext port.MenuContext)) *MockContextMenuBuilder_Build_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 port.MenuContext if args[1] != nil { arg1 = args[1].(port.MenuContext) } run( arg0, arg1, ) }) return _c } func (_c *MockContextMenuBuilder_Build_Call) Return(menuItems []port.MenuItem) *MockContextMenuBuilder_Build_Call { _c.Call.Return(menuItems) return _c } func (_c *MockContextMenuBuilder_Build_Call) RunAndReturn(run func(ctx context.Context, menuContext port.MenuContext) []port.MenuItem) *MockContextMenuBuilder_Build_Call { _c.Call.Return(run) return _c } // NewMockContextMenuActionExecutor creates a new instance of MockContextMenuActionExecutor. 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 NewMockContextMenuActionExecutor(t interface { mock.TestingT Cleanup(func()) }) *MockContextMenuActionExecutor { mock := &MockContextMenuActionExecutor{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockContextMenuActionExecutor is an autogenerated mock type for the ContextMenuActionExecutor type type MockContextMenuActionExecutor struct { mock.Mock } type MockContextMenuActionExecutor_Expecter struct { mock *mock.Mock } func (_m *MockContextMenuActionExecutor) EXPECT() *MockContextMenuActionExecutor_Expecter { return &MockContextMenuActionExecutor_Expecter{mock: &_m.Mock} } // ExecuteMenuAction provides a mock function for the type MockContextMenuActionExecutor func (_mock *MockContextMenuActionExecutor) ExecuteMenuAction(ctx context.Context, action port.MenuAction, menuContext port.MenuContext) error { ret := _mock.Called(ctx, action, menuContext) if len(ret) == 0 { panic("no return value specified for ExecuteMenuAction") } var r0 error if returnFunc, ok := ret.Get(0).(func(context.Context, port.MenuAction, port.MenuContext) error); ok { r0 = returnFunc(ctx, action, menuContext) } else { r0 = ret.Error(0) } return r0 } // MockContextMenuActionExecutor_ExecuteMenuAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteMenuAction' type MockContextMenuActionExecutor_ExecuteMenuAction_Call struct { *mock.Call } // ExecuteMenuAction is a helper method to define mock.On call // - ctx context.Context // - action port.MenuAction // - menuContext port.MenuContext func (_e *MockContextMenuActionExecutor_Expecter) ExecuteMenuAction(ctx any, action any, menuContext any) *MockContextMenuActionExecutor_ExecuteMenuAction_Call { return &MockContextMenuActionExecutor_ExecuteMenuAction_Call{Call: _e.mock.On("ExecuteMenuAction", ctx, action, menuContext)} } func (_c *MockContextMenuActionExecutor_ExecuteMenuAction_Call) Run(run func(ctx context.Context, action port.MenuAction, menuContext port.MenuContext)) *MockContextMenuActionExecutor_ExecuteMenuAction_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 port.MenuAction if args[1] != nil { arg1 = args[1].(port.MenuAction) } var arg2 port.MenuContext if args[2] != nil { arg2 = args[2].(port.MenuContext) } run( arg0, arg1, arg2, ) }) return _c } func (_c *MockContextMenuActionExecutor_ExecuteMenuAction_Call) Return(err error) *MockContextMenuActionExecutor_ExecuteMenuAction_Call { _c.Call.Return(err) return _c } func (_c *MockContextMenuActionExecutor_ExecuteMenuAction_Call) RunAndReturn(run func(ctx context.Context, action port.MenuAction, menuContext port.MenuContext) error) *MockContextMenuActionExecutor_ExecuteMenuAction_Call { _c.Call.Return(run) return _c } // NewMockContextMenuActionExecutorFactory creates a new instance of MockContextMenuActionExecutorFactory. 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 NewMockContextMenuActionExecutorFactory(t interface { mock.TestingT Cleanup(func()) }) *MockContextMenuActionExecutorFactory { mock := &MockContextMenuActionExecutorFactory{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockContextMenuActionExecutorFactory is an autogenerated mock type for the ContextMenuActionExecutorFactory type type MockContextMenuActionExecutorFactory struct { mock.Mock } type MockContextMenuActionExecutorFactory_Expecter struct { mock *mock.Mock } func (_m *MockContextMenuActionExecutorFactory) EXPECT() *MockContextMenuActionExecutorFactory_Expecter { return &MockContextMenuActionExecutorFactory_Expecter{mock: &_m.Mock} } // NewContextMenuActionExecutor provides a mock function for the type MockContextMenuActionExecutorFactory func (_mock *MockContextMenuActionExecutorFactory) NewContextMenuActionExecutor(clipboard port.Clipboard, resolver port.ImageDataResolver, saver port.ResolvedImageSaver, delegator port.MenuActionDelegator) port.ContextMenuActionExecutor { ret := _mock.Called(clipboard, resolver, saver, delegator) if len(ret) == 0 { panic("no return value specified for NewContextMenuActionExecutor") } var r0 port.ContextMenuActionExecutor if returnFunc, ok := ret.Get(0).(func(port.Clipboard, port.ImageDataResolver, port.ResolvedImageSaver, port.MenuActionDelegator) port.ContextMenuActionExecutor); ok { r0 = returnFunc(clipboard, resolver, saver, delegator) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(port.ContextMenuActionExecutor) } } return r0 } // MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewContextMenuActionExecutor' type MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call struct { *mock.Call } // NewContextMenuActionExecutor is a helper method to define mock.On call // - clipboard port.Clipboard // - resolver port.ImageDataResolver // - saver port.ResolvedImageSaver // - delegator port.MenuActionDelegator func (_e *MockContextMenuActionExecutorFactory_Expecter) NewContextMenuActionExecutor(clipboard any, resolver any, saver any, delegator any) *MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call { return &MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call{Call: _e.mock.On("NewContextMenuActionExecutor", clipboard, resolver, saver, delegator)} } func (_c *MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call) Run(run func(clipboard port.Clipboard, resolver port.ImageDataResolver, saver port.ResolvedImageSaver, delegator port.MenuActionDelegator)) *MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 port.Clipboard if args[0] != nil { arg0 = args[0].(port.Clipboard) } var arg1 port.ImageDataResolver if args[1] != nil { arg1 = args[1].(port.ImageDataResolver) } var arg2 port.ResolvedImageSaver if args[2] != nil { arg2 = args[2].(port.ResolvedImageSaver) } var arg3 port.MenuActionDelegator if args[3] != nil { arg3 = args[3].(port.MenuActionDelegator) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call) Return(contextMenuActionExecutor port.ContextMenuActionExecutor) *MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call { _c.Call.Return(contextMenuActionExecutor) return _c } func (_c *MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call) RunAndReturn(run func(clipboard port.Clipboard, resolver port.ImageDataResolver, saver port.ResolvedImageSaver, delegator port.MenuActionDelegator) port.ContextMenuActionExecutor) *MockContextMenuActionExecutorFactory_NewContextMenuActionExecutor_Call { _c.Call.Return(run) return _c } // NewMockMenuActionDelegator creates a new instance of MockMenuActionDelegator. 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 NewMockMenuActionDelegator(t interface { mock.TestingT Cleanup(func()) }) *MockMenuActionDelegator { mock := &MockMenuActionDelegator{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockMenuActionDelegator is an autogenerated mock type for the MenuActionDelegator type type MockMenuActionDelegator struct { mock.Mock } type MockMenuActionDelegator_Expecter struct { mock *mock.Mock } func (_m *MockMenuActionDelegator) EXPECT() *MockMenuActionDelegator_Expecter { return &MockMenuActionDelegator_Expecter{mock: &_m.Mock} } // DelegateMenuAction provides a mock function for the type MockMenuActionDelegator func (_mock *MockMenuActionDelegator) DelegateMenuAction(ctx context.Context, action port.MenuAction, menuContext port.MenuContext) error { ret := _mock.Called(ctx, action, menuContext) if len(ret) == 0 { panic("no return value specified for DelegateMenuAction") } var r0 error if returnFunc, ok := ret.Get(0).(func(context.Context, port.MenuAction, port.MenuContext) error); ok { r0 = returnFunc(ctx, action, menuContext) } else { r0 = ret.Error(0) } return r0 } // MockMenuActionDelegator_DelegateMenuAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DelegateMenuAction' type MockMenuActionDelegator_DelegateMenuAction_Call struct { *mock.Call } // DelegateMenuAction is a helper method to define mock.On call // - ctx context.Context // - action port.MenuAction // - menuContext port.MenuContext func (_e *MockMenuActionDelegator_Expecter) DelegateMenuAction(ctx any, action any, menuContext any) *MockMenuActionDelegator_DelegateMenuAction_Call { return &MockMenuActionDelegator_DelegateMenuAction_Call{Call: _e.mock.On("DelegateMenuAction", ctx, action, menuContext)} } func (_c *MockMenuActionDelegator_DelegateMenuAction_Call) Run(run func(ctx context.Context, action port.MenuAction, menuContext port.MenuContext)) *MockMenuActionDelegator_DelegateMenuAction_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 port.MenuAction if args[1] != nil { arg1 = args[1].(port.MenuAction) } var arg2 port.MenuContext if args[2] != nil { arg2 = args[2].(port.MenuContext) } run( arg0, arg1, arg2, ) }) return _c } func (_c *MockMenuActionDelegator_DelegateMenuAction_Call) Return(err error) *MockMenuActionDelegator_DelegateMenuAction_Call { _c.Call.Return(err) return _c } func (_c *MockMenuActionDelegator_DelegateMenuAction_Call) RunAndReturn(run func(ctx context.Context, action port.MenuAction, menuContext port.MenuContext) error) *MockMenuActionDelegator_DelegateMenuAction_Call { _c.Call.Return(run) return _c }