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

package mock

import (
	context "context"

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

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

// Do provides a mock function with given fields: ctx, method, apiPath, body
func (_m *DMOpenAPIClient) Do(ctx context.Context, method string, apiPath string, body []byte) (int, []byte, error) {
	ret := _m.Called(ctx, method, apiPath, body)

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

	var r0 int
	var r1 []byte
	var r2 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string, []byte) (int, []byte, error)); ok {
		return rf(ctx, method, apiPath, body)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, string, []byte) int); ok {
		r0 = rf(ctx, method, apiPath, body)
	} else {
		r0 = ret.Get(0).(int)
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, string, []byte) []byte); ok {
		r1 = rf(ctx, method, apiPath, body)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).([]byte)
		}
	}

	if rf, ok := ret.Get(2).(func(context.Context, string, string, []byte) error); ok {
		r2 = rf(ctx, method, apiPath, body)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

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

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

	return mock
}
