// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package app import ( "github.com/bnema/neferwl/internal/ports" mock "github.com/stretchr/testify/mock" ) // newMockcontentAttacher creates a new instance of mockcontentAttacher. 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 newMockcontentAttacher(t interface { mock.TestingT Cleanup(func()) }) *mockcontentAttacher { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &mockcontentAttacher{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // mockcontentAttacher is an autogenerated mock type for the contentAttacher type type mockcontentAttacher struct { mock.Mock } type mockcontentAttacher_Expecter struct { mock *mock.Mock } func (_m *mockcontentAttacher) EXPECT() *mockcontentAttacher_Expecter { return &mockcontentAttacher_Expecter{mock: &_m.Mock} } // AttachOutput provides a mock function for the type mockcontentAttacher func (_mock *mockcontentAttacher) AttachOutput(name string) (<-chan *ports.ContentBatch, ports.ContentReturn) { ret := _mock.Called(name) if len(ret) == 0 { panic("no return value specified for AttachOutput") } var r0 <-chan *ports.ContentBatch var r1 ports.ContentReturn if returnFunc, ok := ret.Get(0).(func(string) (<-chan *ports.ContentBatch, ports.ContentReturn)); ok { return returnFunc(name) } if returnFunc, ok := ret.Get(0).(func(string) <-chan *ports.ContentBatch); ok { r0 = returnFunc(name) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(<-chan *ports.ContentBatch) } } if returnFunc, ok := ret.Get(1).(func(string) ports.ContentReturn); ok { r1 = returnFunc(name) } else { if ret.Get(1) != nil { r1 = ret.Get(1).(ports.ContentReturn) } } return r0, r1 } // mockcontentAttacher_AttachOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachOutput' type mockcontentAttacher_AttachOutput_Call struct { *mock.Call } // AttachOutput is a helper method to define mock.On call // - name string func (_e *mockcontentAttacher_Expecter) AttachOutput(name any) *mockcontentAttacher_AttachOutput_Call { return &mockcontentAttacher_AttachOutput_Call{Call: _e.mock.On("AttachOutput", name)} } func (_c *mockcontentAttacher_AttachOutput_Call) Run(run func(name string)) *mockcontentAttacher_AttachOutput_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *mockcontentAttacher_AttachOutput_Call) Return(contentBatchCh <-chan *ports.ContentBatch, contentReturn ports.ContentReturn) *mockcontentAttacher_AttachOutput_Call { _c.Call.Return(contentBatchCh, contentReturn) return _c } func (_c *mockcontentAttacher_AttachOutput_Call) RunAndReturn(run func(name string) (<-chan *ports.ContentBatch, ports.ContentReturn)) *mockcontentAttacher_AttachOutput_Call { _c.Call.Return(run) return _c } // DetachOutput provides a mock function for the type mockcontentAttacher func (_mock *mockcontentAttacher) DetachOutput(feed ports.ContentReturn) { _mock.Called(feed) return } // mockcontentAttacher_DetachOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachOutput' type mockcontentAttacher_DetachOutput_Call struct { *mock.Call } // DetachOutput is a helper method to define mock.On call // - feed ports.ContentReturn func (_e *mockcontentAttacher_Expecter) DetachOutput(feed any) *mockcontentAttacher_DetachOutput_Call { return &mockcontentAttacher_DetachOutput_Call{Call: _e.mock.On("DetachOutput", feed)} } func (_c *mockcontentAttacher_DetachOutput_Call) Run(run func(feed ports.ContentReturn)) *mockcontentAttacher_DetachOutput_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 ports.ContentReturn if args[0] != nil { arg0 = args[0].(ports.ContentReturn) } run( arg0, ) }) return _c } func (_c *mockcontentAttacher_DetachOutput_Call) Return() *mockcontentAttacher_DetachOutput_Call { _c.Call.Return() return _c } func (_c *mockcontentAttacher_DetachOutput_Call) RunAndReturn(run func(feed ports.ContentReturn)) *mockcontentAttacher_DetachOutput_Call { _c.Run(run) return _c }