// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	db "github.com/agglayer/aggkit/aggsender/db"
	mock "github.com/stretchr/testify/mock"

	types "github.com/agglayer/aggkit/db/types"
)

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

type AggSenderStorageMaintainer_Expecter struct {
	mock *mock.Mock
}

func (_m *AggSenderStorageMaintainer) EXPECT() *AggSenderStorageMaintainer_Expecter {
	return &AggSenderStorageMaintainer_Expecter{mock: &_m.Mock}
}

// DeleteCertificate provides a mock function with given fields: tx, height, mustDelete
func (_m *AggSenderStorageMaintainer) DeleteCertificate(tx types.Querier, height uint64, mustDelete db.DeleteFlag) error {
	ret := _m.Called(tx, height, mustDelete)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(types.Querier, uint64, db.DeleteFlag) error); ok {
		r0 = rf(tx, height, mustDelete)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// DeleteCertificate is a helper method to define mock.On call
//   - tx types.Querier
//   - height uint64
//   - mustDelete db.DeleteFlag
func (_e *AggSenderStorageMaintainer_Expecter) DeleteCertificate(tx interface{}, height interface{}, mustDelete interface{}) *AggSenderStorageMaintainer_DeleteCertificate_Call {
	return &AggSenderStorageMaintainer_DeleteCertificate_Call{Call: _e.mock.On("DeleteCertificate", tx, height, mustDelete)}
}

func (_c *AggSenderStorageMaintainer_DeleteCertificate_Call) Run(run func(tx types.Querier, height uint64, mustDelete db.DeleteFlag)) *AggSenderStorageMaintainer_DeleteCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(types.Querier), args[1].(uint64), args[2].(db.DeleteFlag))
	})
	return _c
}

func (_c *AggSenderStorageMaintainer_DeleteCertificate_Call) Return(_a0 error) *AggSenderStorageMaintainer_DeleteCertificate_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorageMaintainer_DeleteCertificate_Call) RunAndReturn(run func(types.Querier, uint64, db.DeleteFlag) error) *AggSenderStorageMaintainer_DeleteCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteOldCertificates provides a mock function with given fields: tx, olderThanHeight
func (_m *AggSenderStorageMaintainer) DeleteOldCertificates(tx types.Querier, olderThanHeight uint64) error {
	ret := _m.Called(tx, olderThanHeight)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(types.Querier, uint64) error); ok {
		r0 = rf(tx, olderThanHeight)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// DeleteOldCertificates is a helper method to define mock.On call
//   - tx types.Querier
//   - olderThanHeight uint64
func (_e *AggSenderStorageMaintainer_Expecter) DeleteOldCertificates(tx interface{}, olderThanHeight interface{}) *AggSenderStorageMaintainer_DeleteOldCertificates_Call {
	return &AggSenderStorageMaintainer_DeleteOldCertificates_Call{Call: _e.mock.On("DeleteOldCertificates", tx, olderThanHeight)}
}

func (_c *AggSenderStorageMaintainer_DeleteOldCertificates_Call) Run(run func(tx types.Querier, olderThanHeight uint64)) *AggSenderStorageMaintainer_DeleteOldCertificates_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(types.Querier), args[1].(uint64))
	})
	return _c
}

func (_c *AggSenderStorageMaintainer_DeleteOldCertificates_Call) Return(_a0 error) *AggSenderStorageMaintainer_DeleteOldCertificates_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorageMaintainer_DeleteOldCertificates_Call) RunAndReturn(run func(types.Querier, uint64) error) *AggSenderStorageMaintainer_DeleteOldCertificates_Call {
	_c.Call.Return(run)
	return _c
}

// MoveCertificateToHistory provides a mock function with given fields: tx, height
func (_m *AggSenderStorageMaintainer) MoveCertificateToHistory(tx types.Querier, height uint64) error {
	ret := _m.Called(tx, height)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(types.Querier, uint64) error); ok {
		r0 = rf(tx, height)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// MoveCertificateToHistory is a helper method to define mock.On call
//   - tx types.Querier
//   - height uint64
func (_e *AggSenderStorageMaintainer_Expecter) MoveCertificateToHistory(tx interface{}, height interface{}) *AggSenderStorageMaintainer_MoveCertificateToHistory_Call {
	return &AggSenderStorageMaintainer_MoveCertificateToHistory_Call{Call: _e.mock.On("MoveCertificateToHistory", tx, height)}
}

func (_c *AggSenderStorageMaintainer_MoveCertificateToHistory_Call) Run(run func(tx types.Querier, height uint64)) *AggSenderStorageMaintainer_MoveCertificateToHistory_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(types.Querier), args[1].(uint64))
	})
	return _c
}

func (_c *AggSenderStorageMaintainer_MoveCertificateToHistory_Call) Return(_a0 error) *AggSenderStorageMaintainer_MoveCertificateToHistory_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorageMaintainer_MoveCertificateToHistory_Call) RunAndReturn(run func(types.Querier, uint64) error) *AggSenderStorageMaintainer_MoveCertificateToHistory_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
