// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package portsmocks import ( "github.com/bnema/neferwl/internal/ports" mock "github.com/stretchr/testify/mock" ) // NewMockContentReturn creates a new instance of MockContentReturn. 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 NewMockContentReturn(t interface { mock.TestingT Cleanup(func()) }) *MockContentReturn { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockContentReturn{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockContentReturn is an autogenerated mock type for the ContentReturn type type MockContentReturn struct { mock.Mock } type MockContentReturn_Expecter struct { mock *mock.Mock } func (_m *MockContentReturn) EXPECT() *MockContentReturn_Expecter { return &MockContentReturn_Expecter{mock: &_m.Mock} } // Return provides a mock function for the type MockContentReturn func (_mock *MockContentReturn) Return(contentBatch *ports.ContentBatch) { _mock.Called(contentBatch) return } // MockContentReturn_Return_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Return' type MockContentReturn_Return_Call struct { *mock.Call } // Return is a helper method to define mock.On call // - contentBatch *ports.ContentBatch func (_e *MockContentReturn_Expecter) Return(contentBatch any) *MockContentReturn_Return_Call { return &MockContentReturn_Return_Call{Call: _e.mock.On("Return", contentBatch)} } func (_c *MockContentReturn_Return_Call) Run(run func(contentBatch *ports.ContentBatch)) *MockContentReturn_Return_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 *ports.ContentBatch if args[0] != nil { arg0 = args[0].(*ports.ContentBatch) } run( arg0, ) }) return _c } func (_c *MockContentReturn_Return_Call) Return() *MockContentReturn_Return_Call { _c.Call.Return() return _c } func (_c *MockContentReturn_Return_Call) RunAndReturn(run func(contentBatch *ports.ContentBatch)) *MockContentReturn_Return_Call { _c.Run(run) return _c }