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

package mocks

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

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

// CreateModelEndpointAlert provides a mock function with given fields: alert
func (_m *AlertStorage) CreateModelEndpointAlert(alert *models.ModelEndpointAlert) error {
	ret := _m.Called(alert)

	var r0 error
	if rf, ok := ret.Get(0).(func(*models.ModelEndpointAlert) error); ok {
		r0 = rf(alert)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// DeleteModelEndpointAlert provides a mock function with given fields: modelID, modelEndpointID
func (_m *AlertStorage) DeleteModelEndpointAlert(modelID models.ID, modelEndpointID models.ID) error {
	ret := _m.Called(modelID, modelEndpointID)

	var r0 error
	if rf, ok := ret.Get(0).(func(models.ID, models.ID) error); ok {
		r0 = rf(modelID, modelEndpointID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// GetModelEndpointAlert provides a mock function with given fields: modelID, modelEndpointID
func (_m *AlertStorage) GetModelEndpointAlert(modelID models.ID, modelEndpointID models.ID) (*models.ModelEndpointAlert, error) {
	ret := _m.Called(modelID, modelEndpointID)

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

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

	return r0, r1
}

// ListModelEndpointAlerts provides a mock function with given fields: modelID
func (_m *AlertStorage) ListModelEndpointAlerts(modelID models.ID) ([]*models.ModelEndpointAlert, error) {
	ret := _m.Called(modelID)

	var r0 []*models.ModelEndpointAlert
	var r1 error
	if rf, ok := ret.Get(0).(func(models.ID) ([]*models.ModelEndpointAlert, error)); ok {
		return rf(modelID)
	}
	if rf, ok := ret.Get(0).(func(models.ID) []*models.ModelEndpointAlert); ok {
		r0 = rf(modelID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*models.ModelEndpointAlert)
		}
	}

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

	return r0, r1
}

// UpdateModelEndpointAlert provides a mock function with given fields: alert
func (_m *AlertStorage) UpdateModelEndpointAlert(alert *models.ModelEndpointAlert) error {
	ret := _m.Called(alert)

	var r0 error
	if rf, ok := ret.Get(0).(func(*models.ModelEndpointAlert) error); ok {
		r0 = rf(alert)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

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

	return mock
}
