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

package s3

import (
	context "context"
	http "net/http"

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

	time "time"

	url "net/url"
)

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

type mockMinioClient_Expecter struct {
	mock *mock.Mock
}

func (_m *mockMinioClient) EXPECT() *mockMinioClient_Expecter {
	return &mockMinioClient_Expecter{mock: &_m.Mock}
}

// PresignHeader provides a mock function with given fields: ctx, method, bucketName, objectName, expires, reqParams, extraHeaders
func (_m *mockMinioClient) PresignHeader(ctx context.Context, method string, bucketName string, objectName string, expires time.Duration, reqParams url.Values, extraHeaders http.Header) (*url.URL, error) {
	ret := _m.Called(ctx, method, bucketName, objectName, expires, reqParams, extraHeaders)

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

	var r0 *url.URL
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, time.Duration, url.Values, http.Header) (*url.URL, error)); ok {
		return rf(ctx, method, bucketName, objectName, expires, reqParams, extraHeaders)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, time.Duration, url.Values, http.Header) *url.URL); ok {
		r0 = rf(ctx, method, bucketName, objectName, expires, reqParams, extraHeaders)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*url.URL)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, string, string, time.Duration, url.Values, http.Header) error); ok {
		r1 = rf(ctx, method, bucketName, objectName, expires, reqParams, extraHeaders)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// PresignHeader is a helper method to define mock.On call
//   - ctx context.Context
//   - method string
//   - bucketName string
//   - objectName string
//   - expires time.Duration
//   - reqParams url.Values
//   - extraHeaders http.Header
func (_e *mockMinioClient_Expecter) PresignHeader(ctx interface{}, method interface{}, bucketName interface{}, objectName interface{}, expires interface{}, reqParams interface{}, extraHeaders interface{}) *mockMinioClient_PresignHeader_Call {
	return &mockMinioClient_PresignHeader_Call{Call: _e.mock.On("PresignHeader", ctx, method, bucketName, objectName, expires, reqParams, extraHeaders)}
}

func (_c *mockMinioClient_PresignHeader_Call) Run(run func(ctx context.Context, method string, bucketName string, objectName string, expires time.Duration, reqParams url.Values, extraHeaders http.Header)) *mockMinioClient_PresignHeader_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(string), args[4].(time.Duration), args[5].(url.Values), args[6].(http.Header))
	})
	return _c
}

func (_c *mockMinioClient_PresignHeader_Call) Return(_a0 *url.URL, _a1 error) *mockMinioClient_PresignHeader_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *mockMinioClient_PresignHeader_Call) RunAndReturn(run func(context.Context, string, string, string, time.Duration, url.Values, http.Header) (*url.URL, error)) *mockMinioClient_PresignHeader_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
