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

package mock

import (
	context "context"

	bizerr "github.com/tidbcloud/pkgv2/bizerr"

	domain "github.com/tidbcloud/dataflow-service/app/models/domain"

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

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

// AsyncCreate provides a mock function with given fields: ctx, req
func (_m *CompactBackupModel) AsyncCreate(ctx context.Context, req *domain.AsyncCreateCompactBackupReq) (*domain.AsyncCreateCompactBackupResp, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.AsyncCreateCompactBackupResp
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.AsyncCreateCompactBackupReq) (*domain.AsyncCreateCompactBackupResp, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.AsyncCreateCompactBackupReq) *domain.AsyncCreateCompactBackupResp); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.AsyncCreateCompactBackupResp)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.AsyncCreateCompactBackupReq) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// AsyncDelete provides a mock function with given fields: ctx, req
func (_m *CompactBackupModel) AsyncDelete(ctx context.Context, req *domain.AsyncDeleteCompactBackupReq) (*domain.AsyncDeleteCompactBackupResp, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.AsyncDeleteCompactBackupResp
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.AsyncDeleteCompactBackupReq) (*domain.AsyncDeleteCompactBackupResp, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.AsyncDeleteCompactBackupReq) *domain.AsyncDeleteCompactBackupResp); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.AsyncDeleteCompactBackupResp)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.AsyncDeleteCompactBackupReq) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// DeleteCompactionsSubDir provides a mock function with given fields: ctx, compactBackupID
func (_m *CompactBackupModel) DeleteCompactionsSubDir(ctx context.Context, compactBackupID uint64) bizerr.BizError {
	ret := _m.Called(ctx, compactBackupID)

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

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

	return r0
}

// SyncDeleteMigrations provides a mock function with given fields: ctx, compactBackupID
func (_m *CompactBackupModel) SyncDeleteMigrations(ctx context.Context, compactBackupID uint64) bizerr.BizError {
	ret := _m.Called(ctx, compactBackupID)

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

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

	return r0
}

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

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

	return mock
}
