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

package mock

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

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

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

// DecryptBase64 provides a mock function with given fields: encryptedEncoded
func (_m *Encryptor) DecryptBase64(encryptedEncoded string) (string, bizerr.BizError) {
	ret := _m.Called(encryptedEncoded)

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

	var r0 string
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(string) (string, bizerr.BizError)); ok {
		return rf(encryptedEncoded)
	}
	if rf, ok := ret.Get(0).(func(string) string); ok {
		r0 = rf(encryptedEncoded)
	} else {
		r0 = ret.Get(0).(string)
	}

	if rf, ok := ret.Get(1).(func(string) bizerr.BizError); ok {
		r1 = rf(encryptedEncoded)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// DecryptBase64Inplace provides a mock function with given fields: encryptedEncoded
func (_m *Encryptor) DecryptBase64Inplace(encryptedEncoded *string) bizerr.BizError {
	ret := _m.Called(encryptedEncoded)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(*string) bizerr.BizError); ok {
		r0 = rf(encryptedEncoded)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// EncryptBase64 provides a mock function with given fields: text
func (_m *Encryptor) EncryptBase64(text string) (string, bizerr.BizError) {
	ret := _m.Called(text)

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

	var r0 string
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(string) (string, bizerr.BizError)); ok {
		return rf(text)
	}
	if rf, ok := ret.Get(0).(func(string) string); ok {
		r0 = rf(text)
	} else {
		r0 = ret.Get(0).(string)
	}

	if rf, ok := ret.Get(1).(func(string) bizerr.BizError); ok {
		r1 = rf(text)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// EncryptBase64Inplace provides a mock function with given fields: text
func (_m *Encryptor) EncryptBase64Inplace(text *string) bizerr.BizError {
	ret := _m.Called(text)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(*string) bizerr.BizError); ok {
		r0 = rf(text)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

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

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

	return mock
}
