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

package mock

import (
	backup "github.com/tidbcloud/dataflow-service/app/repo/backup"
	bizerr "github.com/tidbcloud/pkgv2/bizerr"

	context "context"

	entity "github.com/tidbcloud/dataflow-service/app/repo/entity"

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

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

// Get provides a mock function with given fields: ctx, ops
func (_m *LogBackupSizeRepo) Get(ctx context.Context, ops ...backup.LogBackupSizeFilterOp) (*entity.LogBackupSize, bizerr.BizError) {
	_va := make([]interface{}, len(ops))
	for _i := range ops {
		_va[_i] = ops[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

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

	var r0 *entity.LogBackupSize
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, ...backup.LogBackupSizeFilterOp) (*entity.LogBackupSize, bizerr.BizError)); ok {
		return rf(ctx, ops...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, ...backup.LogBackupSizeFilterOp) *entity.LogBackupSize); ok {
		r0 = rf(ctx, ops...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*entity.LogBackupSize)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, ...backup.LogBackupSizeFilterOp) bizerr.BizError); ok {
		r1 = rf(ctx, ops...)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// List provides a mock function with given fields: ctx, ops
func (_m *LogBackupSizeRepo) List(ctx context.Context, ops ...backup.LogBackupSizeFilterOp) ([]entity.LogBackupSize, bizerr.BizError) {
	_va := make([]interface{}, len(ops))
	for _i := range ops {
		_va[_i] = ops[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

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

	var r0 []entity.LogBackupSize
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, ...backup.LogBackupSizeFilterOp) ([]entity.LogBackupSize, bizerr.BizError)); ok {
		return rf(ctx, ops...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, ...backup.LogBackupSizeFilterOp) []entity.LogBackupSize); ok {
		r0 = rf(ctx, ops...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]entity.LogBackupSize)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, ...backup.LogBackupSizeFilterOp) bizerr.BizError); ok {
		r1 = rf(ctx, ops...)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// Load provides a mock function with given fields: ctx, id
func (_m *LogBackupSizeRepo) Load(ctx context.Context, id entity.ID) (*entity.LogBackupSize, bizerr.BizError) {
	ret := _m.Called(ctx, id)

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

	var r0 *entity.LogBackupSize
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, entity.ID) (*entity.LogBackupSize, bizerr.BizError)); ok {
		return rf(ctx, id)
	}
	if rf, ok := ret.Get(0).(func(context.Context, entity.ID) *entity.LogBackupSize); ok {
		r0 = rf(ctx, id)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*entity.LogBackupSize)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, entity.ID) bizerr.BizError); ok {
		r1 = rf(ctx, id)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// Save provides a mock function with given fields: ctx, setting
func (_m *LogBackupSizeRepo) Save(ctx context.Context, setting *entity.LogBackupSize) bizerr.BizError {
	ret := _m.Called(ctx, setting)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *entity.LogBackupSize) bizerr.BizError); ok {
		r0 = rf(ctx, setting)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

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

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

	return mock
}
