// 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" ) // NewMockFaviconImageConverter creates a new instance of MockFaviconImageConverter. 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 NewMockFaviconImageConverter(t interface { mock.TestingT Cleanup(func()) }) *MockFaviconImageConverter { mock := &MockFaviconImageConverter{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockFaviconImageConverter is an autogenerated mock type for the FaviconImageConverter type type MockFaviconImageConverter struct { mock.Mock } type MockFaviconImageConverter_Expecter struct { mock *mock.Mock } func (_m *MockFaviconImageConverter) EXPECT() *MockFaviconImageConverter_Expecter { return &MockFaviconImageConverter_Expecter{mock: &_m.Mock} } // Convert provides a mock function for the type MockFaviconImageConverter func (_mock *MockFaviconImageConverter) Convert(ctx context.Context, original []byte, contentType string, sizes []int) (*port.ConvertedFavicon, error) { ret := _mock.Called(ctx, original, contentType, sizes) if len(ret) == 0 { panic("no return value specified for Convert") } var r0 *port.ConvertedFavicon var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, []byte, string, []int) (*port.ConvertedFavicon, error)); ok { return returnFunc(ctx, original, contentType, sizes) } if returnFunc, ok := ret.Get(0).(func(context.Context, []byte, string, []int) *port.ConvertedFavicon); ok { r0 = returnFunc(ctx, original, contentType, sizes) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*port.ConvertedFavicon) } } if returnFunc, ok := ret.Get(1).(func(context.Context, []byte, string, []int) error); ok { r1 = returnFunc(ctx, original, contentType, sizes) } else { r1 = ret.Error(1) } return r0, r1 } // MockFaviconImageConverter_Convert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Convert' type MockFaviconImageConverter_Convert_Call struct { *mock.Call } // Convert is a helper method to define mock.On call // - ctx context.Context // - original []byte // - contentType string // - sizes []int func (_e *MockFaviconImageConverter_Expecter) Convert(ctx any, original any, contentType any, sizes any) *MockFaviconImageConverter_Convert_Call { return &MockFaviconImageConverter_Convert_Call{Call: _e.mock.On("Convert", ctx, original, contentType, sizes)} } func (_c *MockFaviconImageConverter_Convert_Call) Run(run func(ctx context.Context, original []byte, contentType string, sizes []int)) *MockFaviconImageConverter_Convert_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 []byte if args[1] != nil { arg1 = args[1].([]byte) } var arg2 string if args[2] != nil { arg2 = args[2].(string) } var arg3 []int if args[3] != nil { arg3 = args[3].([]int) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *MockFaviconImageConverter_Convert_Call) Return(convertedFavicon *port.ConvertedFavicon, err error) *MockFaviconImageConverter_Convert_Call { _c.Call.Return(convertedFavicon, err) return _c } func (_c *MockFaviconImageConverter_Convert_Call) RunAndReturn(run func(ctx context.Context, original []byte, contentType string, sizes []int) (*port.ConvertedFavicon, error)) *MockFaviconImageConverter_Convert_Call { _c.Call.Return(run) return _c }