// Code generated by mockery v2.53.3. DO NOT EDIT.

package helperimage

import mock "github.com/stretchr/testify/mock"

// mockCreator is an autogenerated mock type for the creator type
type mockCreator struct {
	mock.Mock
}

type mockCreator_Expecter struct {
	mock *mock.Mock
}

func (_m *mockCreator) EXPECT() *mockCreator_Expecter {
	return &mockCreator_Expecter{mock: &_m.Mock}
}

// Create provides a mock function with given fields: revision, cfg
func (_m *mockCreator) Create(revision string, cfg Config) (Info, error) {
	ret := _m.Called(revision, cfg)

	if len(ret) == 0 {
		panic("no return value specified for Create")
	}

	var r0 Info
	var r1 error
	if rf, ok := ret.Get(0).(func(string, Config) (Info, error)); ok {
		return rf(revision, cfg)
	}
	if rf, ok := ret.Get(0).(func(string, Config) Info); ok {
		r0 = rf(revision, cfg)
	} else {
		r0 = ret.Get(0).(Info)
	}

	if rf, ok := ret.Get(1).(func(string, Config) error); ok {
		r1 = rf(revision, cfg)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// mockCreator_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
type mockCreator_Create_Call struct {
	*mock.Call
}

// Create is a helper method to define mock.On call
//   - revision string
//   - cfg Config
func (_e *mockCreator_Expecter) Create(revision interface{}, cfg interface{}) *mockCreator_Create_Call {
	return &mockCreator_Create_Call{Call: _e.mock.On("Create", revision, cfg)}
}

func (_c *mockCreator_Create_Call) Run(run func(revision string, cfg Config)) *mockCreator_Create_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(string), args[1].(Config))
	})
	return _c
}

func (_c *mockCreator_Create_Call) Return(_a0 Info, _a1 error) *mockCreator_Create_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *mockCreator_Create_Call) RunAndReturn(run func(string, Config) (Info, error)) *mockCreator_Create_Call {
	_c.Call.Return(run)
	return _c
}

// newMockCreator creates a new instance of mockCreator. 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 newMockCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *mockCreator {
	mock := &mockCreator{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
