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

package mocks

import (
	context "context"

	mlp "github.com/caraml-dev/merlin/mlp"

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

	models "github.com/caraml-dev/merlin/models"
)

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

// BuildImage provides a mock function with given fields: ctx, project, model, version, resourceRequest, backoffLimit
func (_m *ImageBuilder) BuildImage(ctx context.Context, project mlp.Project, model *models.Model, version *models.Version, resourceRequest *models.ResourceRequest, backoffLimit *int32) (string, error) {
	ret := _m.Called(ctx, project, model, version, resourceRequest, backoffLimit)

	var r0 string
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, mlp.Project, *models.Model, *models.Version, *models.ResourceRequest, *int32) (string, error)); ok {
		return rf(ctx, project, model, version, resourceRequest, backoffLimit)
	}
	if rf, ok := ret.Get(0).(func(context.Context, mlp.Project, *models.Model, *models.Version, *models.ResourceRequest, *int32) string); ok {
		r0 = rf(ctx, project, model, version, resourceRequest, backoffLimit)
	} else {
		r0 = ret.Get(0).(string)
	}

	if rf, ok := ret.Get(1).(func(context.Context, mlp.Project, *models.Model, *models.Version, *models.ResourceRequest, *int32) error); ok {
		r1 = rf(ctx, project, model, version, resourceRequest, backoffLimit)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetContainers provides a mock function with given fields: ctx, project, model, version
func (_m *ImageBuilder) GetContainers(ctx context.Context, project mlp.Project, model *models.Model, version *models.Version) ([]*models.Container, error) {
	ret := _m.Called(ctx, project, model, version)

	var r0 []*models.Container
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, mlp.Project, *models.Model, *models.Version) ([]*models.Container, error)); ok {
		return rf(ctx, project, model, version)
	}
	if rf, ok := ret.Get(0).(func(context.Context, mlp.Project, *models.Model, *models.Version) []*models.Container); ok {
		r0 = rf(ctx, project, model, version)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*models.Container)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, mlp.Project, *models.Model, *models.Version) error); ok {
		r1 = rf(ctx, project, model, version)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetImageBuildingJobStatus provides a mock function with given fields: ctx, project, model, version
func (_m *ImageBuilder) GetImageBuildingJobStatus(ctx context.Context, project mlp.Project, model *models.Model, version *models.Version) models.ImageBuildingJobStatus {
	ret := _m.Called(ctx, project, model, version)

	var r0 models.ImageBuildingJobStatus
	if rf, ok := ret.Get(0).(func(context.Context, mlp.Project, *models.Model, *models.Version) models.ImageBuildingJobStatus); ok {
		r0 = rf(ctx, project, model, version)
	} else {
		r0 = ret.Get(0).(models.ImageBuildingJobStatus)
	}

	return r0
}

// GetMainAppPath provides a mock function with given fields: version
func (_m *ImageBuilder) GetMainAppPath(version *models.Version) (string, error) {
	ret := _m.Called(version)

	var r0 string
	var r1 error
	if rf, ok := ret.Get(0).(func(*models.Version) (string, error)); ok {
		return rf(version)
	}
	if rf, ok := ret.Get(0).(func(*models.Version) string); ok {
		r0 = rf(version)
	} else {
		r0 = ret.Get(0).(string)
	}

	if rf, ok := ret.Get(1).(func(*models.Version) error); ok {
		r1 = rf(version)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetVersionImage provides a mock function with given fields: ctx, project, model, version
func (_m *ImageBuilder) GetVersionImage(ctx context.Context, project mlp.Project, model *models.Model, version *models.Version) models.VersionImage {
	ret := _m.Called(ctx, project, model, version)

	var r0 models.VersionImage
	if rf, ok := ret.Get(0).(func(context.Context, mlp.Project, *models.Model, *models.Version) models.VersionImage); ok {
		r0 = rf(ctx, project, model, version)
	} else {
		r0 = ret.Get(0).(models.VersionImage)
	}

	return r0
}

type mockConstructorTestingTNewImageBuilder interface {
	mock.TestingT
	Cleanup(func())
}

// NewImageBuilder creates a new instance of ImageBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewImageBuilder(t mockConstructorTestingTNewImageBuilder) *ImageBuilder {
	mock := &ImageBuilder{}
	mock.Mock.Test(t)

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

	return mock
}
