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

package mock

import (
	context "context"
	io "io"

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

	regionalapi "github.com/tidbcloud/dataflow-service/pkg/regional-api"
)

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

// DELETE provides a mock function with given fields: ctx, url, opts
func (_m *HTTPRequester) DELETE(ctx context.Context, url string, opts *regionalapi.HTTPRequesterOption) ([]byte, error) {
	ret := _m.Called(ctx, url, opts)

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

	var r0 []byte
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *regionalapi.HTTPRequesterOption) ([]byte, error)); ok {
		return rf(ctx, url, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, *regionalapi.HTTPRequesterOption) []byte); ok {
		r0 = rf(ctx, url, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, *regionalapi.HTTPRequesterOption) error); ok {
		r1 = rf(ctx, url, opts)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GET provides a mock function with given fields: ctx, url, opts
func (_m *HTTPRequester) GET(ctx context.Context, url string, opts *regionalapi.HTTPRequesterOption) ([]byte, error) {
	ret := _m.Called(ctx, url, opts)

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

	var r0 []byte
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *regionalapi.HTTPRequesterOption) ([]byte, error)); ok {
		return rf(ctx, url, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, *regionalapi.HTTPRequesterOption) []byte); ok {
		r0 = rf(ctx, url, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, *regionalapi.HTTPRequesterOption) error); ok {
		r1 = rf(ctx, url, opts)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// POST provides a mock function with given fields: ctx, url, body, opts
func (_m *HTTPRequester) POST(ctx context.Context, url string, body io.Reader, opts *regionalapi.HTTPRequesterOption) ([]byte, error) {
	ret := _m.Called(ctx, url, body, opts)

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

	var r0 []byte
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, *regionalapi.HTTPRequesterOption) ([]byte, error)); ok {
		return rf(ctx, url, body, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, *regionalapi.HTTPRequesterOption) []byte); ok {
		r0 = rf(ctx, url, body, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, *regionalapi.HTTPRequesterOption) error); ok {
		r1 = rf(ctx, url, body, opts)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// PUT provides a mock function with given fields: ctx, url, body, opts
func (_m *HTTPRequester) PUT(ctx context.Context, url string, body io.Reader, opts *regionalapi.HTTPRequesterOption) ([]byte, error) {
	ret := _m.Called(ctx, url, body, opts)

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

	var r0 []byte
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, *regionalapi.HTTPRequesterOption) ([]byte, error)); ok {
		return rf(ctx, url, body, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, *regionalapi.HTTPRequesterOption) []byte); ok {
		r0 = rf(ctx, url, body, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, *regionalapi.HTTPRequesterOption) error); ok {
		r1 = rf(ctx, url, body, opts)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

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

	return mock
}
