// 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" ) // NewMockCastSink creates a new instance of MockCastSink. 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 NewMockCastSink(t interface { mock.TestingT Cleanup(func()) }) *MockCastSink { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockCastSink{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockCastSink is an autogenerated mock type for the CastSink type type MockCastSink struct { mock.Mock } type MockCastSink_Expecter struct { mock *mock.Mock } func (_m *MockCastSink) EXPECT() *MockCastSink_Expecter { return &MockCastSink_Expecter{mock: &_m.Mock} } // Inventory provides a mock function for the type MockCastSink func (_mock *MockCastSink) Inventory(castInventory ports.CastInventory) { _mock.Called(castInventory) return } // MockCastSink_Inventory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inventory' type MockCastSink_Inventory_Call struct { *mock.Call } // Inventory is a helper method to define mock.On call // - castInventory ports.CastInventory func (_e *MockCastSink_Expecter) Inventory(castInventory any) *MockCastSink_Inventory_Call { return &MockCastSink_Inventory_Call{Call: _e.mock.On("Inventory", castInventory)} } func (_c *MockCastSink_Inventory_Call) Run(run func(castInventory ports.CastInventory)) *MockCastSink_Inventory_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 ports.CastInventory if args[0] != nil { arg0 = args[0].(ports.CastInventory) } run( arg0, ) }) return _c } func (_c *MockCastSink_Inventory_Call) Return() *MockCastSink_Inventory_Call { _c.Call.Return() return _c } func (_c *MockCastSink_Inventory_Call) RunAndReturn(run func(castInventory ports.CastInventory)) *MockCastSink_Inventory_Call { _c.Run(run) return _c } // Push provides a mock function for the type MockCastSink func (_mock *MockCastSink) Push(castEvent ports.CastEvent) { _mock.Called(castEvent) return } // MockCastSink_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push' type MockCastSink_Push_Call struct { *mock.Call } // Push is a helper method to define mock.On call // - castEvent ports.CastEvent func (_e *MockCastSink_Expecter) Push(castEvent any) *MockCastSink_Push_Call { return &MockCastSink_Push_Call{Call: _e.mock.On("Push", castEvent)} } func (_c *MockCastSink_Push_Call) Run(run func(castEvent ports.CastEvent)) *MockCastSink_Push_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 ports.CastEvent if args[0] != nil { arg0 = args[0].(ports.CastEvent) } run( arg0, ) }) return _c } func (_c *MockCastSink_Push_Call) Return() *MockCastSink_Push_Call { _c.Call.Return() return _c } func (_c *MockCastSink_Push_Call) RunAndReturn(run func(castEvent ports.CastEvent)) *MockCastSink_Push_Call { _c.Run(run) return _c }