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

package mocks

import (
	context "context"

	models "github.com/caraml-dev/merlin/models"
	mock "github.com/stretchr/testify/mock"
)

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

// FindByID provides a mock function with given fields: ctx, versionID, modelID
func (_m *VersionStorage) FindByID(ctx context.Context, versionID models.ID, modelID models.ID) (*models.Version, error) {
	ret := _m.Called(ctx, versionID, modelID)

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

	var r0 *models.Version
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, models.ID, models.ID) (*models.Version, error)); ok {
		return rf(ctx, versionID, modelID)
	}
	if rf, ok := ret.Get(0).(func(context.Context, models.ID, models.ID) *models.Version); ok {
		r0 = rf(ctx, versionID, modelID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*models.Version)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, models.ID, models.ID) error); ok {
		r1 = rf(ctx, versionID, modelID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

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

	return mock
}
