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

package mocks

import (
	context "context"
	io "io"

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

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

// Download provides a mock function with given fields: ctx, backendType, secretID, w, digest
func (_m *CASClient) Download(ctx context.Context, backendType string, secretID string, w io.Writer, digest string) error {
	ret := _m.Called(ctx, backendType, secretID, w, digest)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Writer, string) error); ok {
		r0 = rf(ctx, backendType, secretID, w, digest)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Upload provides a mock function with given fields: ctx, backendType, secretID, content, filename, digest
func (_m *CASClient) Upload(ctx context.Context, backendType string, secretID string, content io.Reader, filename string, digest string) error {
	ret := _m.Called(ctx, backendType, secretID, content, filename, digest)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, string, string) error); ok {
		r0 = rf(ctx, backendType, secretID, content, filename, digest)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

	return mock
}
