// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "github.com/bnema/dumber/internal/application/dto" mock "github.com/stretchr/testify/mock" ) // NewMockClipboardTextOrchestrator creates a new instance of MockClipboardTextOrchestrator. 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 NewMockClipboardTextOrchestrator(t interface { mock.TestingT Cleanup(func()) }) *MockClipboardTextOrchestrator { mock := &MockClipboardTextOrchestrator{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockClipboardTextOrchestrator is an autogenerated mock type for the ClipboardTextOrchestrator type type MockClipboardTextOrchestrator struct { mock.Mock } type MockClipboardTextOrchestrator_Expecter struct { mock *mock.Mock } func (_m *MockClipboardTextOrchestrator) EXPECT() *MockClipboardTextOrchestrator_Expecter { return &MockClipboardTextOrchestrator_Expecter{mock: &_m.Mock} } // HandleExplicitCopy provides a mock function for the type MockClipboardTextOrchestrator func (_mock *MockClipboardTextOrchestrator) HandleExplicitCopy(ctx context.Context, input dto.ExplicitClipboardInput) error { ret := _mock.Called(ctx, input) if len(ret) == 0 { panic("no return value specified for HandleExplicitCopy") } var r0 error if returnFunc, ok := ret.Get(0).(func(context.Context, dto.ExplicitClipboardInput) error); ok { r0 = returnFunc(ctx, input) } else { r0 = ret.Error(0) } return r0 } // MockClipboardTextOrchestrator_HandleExplicitCopy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleExplicitCopy' type MockClipboardTextOrchestrator_HandleExplicitCopy_Call struct { *mock.Call } // HandleExplicitCopy is a helper method to define mock.On call // - ctx context.Context // - input dto.ExplicitClipboardInput func (_e *MockClipboardTextOrchestrator_Expecter) HandleExplicitCopy(ctx any, input any) *MockClipboardTextOrchestrator_HandleExplicitCopy_Call { return &MockClipboardTextOrchestrator_HandleExplicitCopy_Call{Call: _e.mock.On("HandleExplicitCopy", ctx, input)} } func (_c *MockClipboardTextOrchestrator_HandleExplicitCopy_Call) Run(run func(ctx context.Context, input dto.ExplicitClipboardInput)) *MockClipboardTextOrchestrator_HandleExplicitCopy_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 dto.ExplicitClipboardInput if args[1] != nil { arg1 = args[1].(dto.ExplicitClipboardInput) } run( arg0, arg1, ) }) return _c } func (_c *MockClipboardTextOrchestrator_HandleExplicitCopy_Call) Return(err error) *MockClipboardTextOrchestrator_HandleExplicitCopy_Call { _c.Call.Return(err) return _c } func (_c *MockClipboardTextOrchestrator_HandleExplicitCopy_Call) RunAndReturn(run func(ctx context.Context, input dto.ExplicitClipboardInput) error) *MockClipboardTextOrchestrator_HandleExplicitCopy_Call { _c.Call.Return(run) return _c } // HandleSelectionUpdate provides a mock function for the type MockClipboardTextOrchestrator func (_mock *MockClipboardTextOrchestrator) HandleSelectionUpdate(ctx context.Context, input dto.SelectionClipboardInput) error { ret := _mock.Called(ctx, input) if len(ret) == 0 { panic("no return value specified for HandleSelectionUpdate") } var r0 error if returnFunc, ok := ret.Get(0).(func(context.Context, dto.SelectionClipboardInput) error); ok { r0 = returnFunc(ctx, input) } else { r0 = ret.Error(0) } return r0 } // MockClipboardTextOrchestrator_HandleSelectionUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleSelectionUpdate' type MockClipboardTextOrchestrator_HandleSelectionUpdate_Call struct { *mock.Call } // HandleSelectionUpdate is a helper method to define mock.On call // - ctx context.Context // - input dto.SelectionClipboardInput func (_e *MockClipboardTextOrchestrator_Expecter) HandleSelectionUpdate(ctx any, input any) *MockClipboardTextOrchestrator_HandleSelectionUpdate_Call { return &MockClipboardTextOrchestrator_HandleSelectionUpdate_Call{Call: _e.mock.On("HandleSelectionUpdate", ctx, input)} } func (_c *MockClipboardTextOrchestrator_HandleSelectionUpdate_Call) Run(run func(ctx context.Context, input dto.SelectionClipboardInput)) *MockClipboardTextOrchestrator_HandleSelectionUpdate_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 dto.SelectionClipboardInput if args[1] != nil { arg1 = args[1].(dto.SelectionClipboardInput) } run( arg0, arg1, ) }) return _c } func (_c *MockClipboardTextOrchestrator_HandleSelectionUpdate_Call) Return(err error) *MockClipboardTextOrchestrator_HandleSelectionUpdate_Call { _c.Call.Return(err) return _c } func (_c *MockClipboardTextOrchestrator_HandleSelectionUpdate_Call) RunAndReturn(run func(ctx context.Context, input dto.SelectionClipboardInput) error) *MockClipboardTextOrchestrator_HandleSelectionUpdate_Call { _c.Call.Return(run) return _c }