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

package exec

import (
	net "net"

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

	time "time"
)

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

type mockConn_Expecter struct {
	mock *mock.Mock
}

func (_m *mockConn) EXPECT() *mockConn_Expecter {
	return &mockConn_Expecter{mock: &_m.Mock}
}

// Close provides a mock function with no fields
func (_m *mockConn) Close() error {
	ret := _m.Called()

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

	var r0 error
	if rf, ok := ret.Get(0).(func() error); ok {
		r0 = rf()
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// Close is a helper method to define mock.On call
func (_e *mockConn_Expecter) Close() *mockConn_Close_Call {
	return &mockConn_Close_Call{Call: _e.mock.On("Close")}
}

func (_c *mockConn_Close_Call) Run(run func()) *mockConn_Close_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *mockConn_Close_Call) Return(_a0 error) *mockConn_Close_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *mockConn_Close_Call) RunAndReturn(run func() error) *mockConn_Close_Call {
	_c.Call.Return(run)
	return _c
}

// LocalAddr provides a mock function with no fields
func (_m *mockConn) LocalAddr() net.Addr {
	ret := _m.Called()

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

	var r0 net.Addr
	if rf, ok := ret.Get(0).(func() net.Addr); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(net.Addr)
		}
	}

	return r0
}

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

// LocalAddr is a helper method to define mock.On call
func (_e *mockConn_Expecter) LocalAddr() *mockConn_LocalAddr_Call {
	return &mockConn_LocalAddr_Call{Call: _e.mock.On("LocalAddr")}
}

func (_c *mockConn_LocalAddr_Call) Run(run func()) *mockConn_LocalAddr_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *mockConn_LocalAddr_Call) Return(_a0 net.Addr) *mockConn_LocalAddr_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *mockConn_LocalAddr_Call) RunAndReturn(run func() net.Addr) *mockConn_LocalAddr_Call {
	_c.Call.Return(run)
	return _c
}

// Read provides a mock function with given fields: b
func (_m *mockConn) Read(b []byte) (int, error) {
	ret := _m.Called(b)

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

	var r0 int
	var r1 error
	if rf, ok := ret.Get(0).(func([]byte) (int, error)); ok {
		return rf(b)
	}
	if rf, ok := ret.Get(0).(func([]byte) int); ok {
		r0 = rf(b)
	} else {
		r0 = ret.Get(0).(int)
	}

	if rf, ok := ret.Get(1).(func([]byte) error); ok {
		r1 = rf(b)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// Read is a helper method to define mock.On call
//   - b []byte
func (_e *mockConn_Expecter) Read(b interface{}) *mockConn_Read_Call {
	return &mockConn_Read_Call{Call: _e.mock.On("Read", b)}
}

func (_c *mockConn_Read_Call) Run(run func(b []byte)) *mockConn_Read_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].([]byte))
	})
	return _c
}

func (_c *mockConn_Read_Call) Return(n int, err error) *mockConn_Read_Call {
	_c.Call.Return(n, err)
	return _c
}

func (_c *mockConn_Read_Call) RunAndReturn(run func([]byte) (int, error)) *mockConn_Read_Call {
	_c.Call.Return(run)
	return _c
}

// RemoteAddr provides a mock function with no fields
func (_m *mockConn) RemoteAddr() net.Addr {
	ret := _m.Called()

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

	var r0 net.Addr
	if rf, ok := ret.Get(0).(func() net.Addr); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(net.Addr)
		}
	}

	return r0
}

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

// RemoteAddr is a helper method to define mock.On call
func (_e *mockConn_Expecter) RemoteAddr() *mockConn_RemoteAddr_Call {
	return &mockConn_RemoteAddr_Call{Call: _e.mock.On("RemoteAddr")}
}

func (_c *mockConn_RemoteAddr_Call) Run(run func()) *mockConn_RemoteAddr_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *mockConn_RemoteAddr_Call) Return(_a0 net.Addr) *mockConn_RemoteAddr_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *mockConn_RemoteAddr_Call) RunAndReturn(run func() net.Addr) *mockConn_RemoteAddr_Call {
	_c.Call.Return(run)
	return _c
}

// SetDeadline provides a mock function with given fields: t
func (_m *mockConn) SetDeadline(t time.Time) error {
	ret := _m.Called(t)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(time.Time) error); ok {
		r0 = rf(t)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// SetDeadline is a helper method to define mock.On call
//   - t time.Time
func (_e *mockConn_Expecter) SetDeadline(t interface{}) *mockConn_SetDeadline_Call {
	return &mockConn_SetDeadline_Call{Call: _e.mock.On("SetDeadline", t)}
}

func (_c *mockConn_SetDeadline_Call) Run(run func(t time.Time)) *mockConn_SetDeadline_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(time.Time))
	})
	return _c
}

func (_c *mockConn_SetDeadline_Call) Return(_a0 error) *mockConn_SetDeadline_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *mockConn_SetDeadline_Call) RunAndReturn(run func(time.Time) error) *mockConn_SetDeadline_Call {
	_c.Call.Return(run)
	return _c
}

// SetReadDeadline provides a mock function with given fields: t
func (_m *mockConn) SetReadDeadline(t time.Time) error {
	ret := _m.Called(t)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(time.Time) error); ok {
		r0 = rf(t)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// SetReadDeadline is a helper method to define mock.On call
//   - t time.Time
func (_e *mockConn_Expecter) SetReadDeadline(t interface{}) *mockConn_SetReadDeadline_Call {
	return &mockConn_SetReadDeadline_Call{Call: _e.mock.On("SetReadDeadline", t)}
}

func (_c *mockConn_SetReadDeadline_Call) Run(run func(t time.Time)) *mockConn_SetReadDeadline_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(time.Time))
	})
	return _c
}

func (_c *mockConn_SetReadDeadline_Call) Return(_a0 error) *mockConn_SetReadDeadline_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *mockConn_SetReadDeadline_Call) RunAndReturn(run func(time.Time) error) *mockConn_SetReadDeadline_Call {
	_c.Call.Return(run)
	return _c
}

// SetWriteDeadline provides a mock function with given fields: t
func (_m *mockConn) SetWriteDeadline(t time.Time) error {
	ret := _m.Called(t)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(time.Time) error); ok {
		r0 = rf(t)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// SetWriteDeadline is a helper method to define mock.On call
//   - t time.Time
func (_e *mockConn_Expecter) SetWriteDeadline(t interface{}) *mockConn_SetWriteDeadline_Call {
	return &mockConn_SetWriteDeadline_Call{Call: _e.mock.On("SetWriteDeadline", t)}
}

func (_c *mockConn_SetWriteDeadline_Call) Run(run func(t time.Time)) *mockConn_SetWriteDeadline_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(time.Time))
	})
	return _c
}

func (_c *mockConn_SetWriteDeadline_Call) Return(_a0 error) *mockConn_SetWriteDeadline_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *mockConn_SetWriteDeadline_Call) RunAndReturn(run func(time.Time) error) *mockConn_SetWriteDeadline_Call {
	_c.Call.Return(run)
	return _c
}

// Write provides a mock function with given fields: b
func (_m *mockConn) Write(b []byte) (int, error) {
	ret := _m.Called(b)

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

	var r0 int
	var r1 error
	if rf, ok := ret.Get(0).(func([]byte) (int, error)); ok {
		return rf(b)
	}
	if rf, ok := ret.Get(0).(func([]byte) int); ok {
		r0 = rf(b)
	} else {
		r0 = ret.Get(0).(int)
	}

	if rf, ok := ret.Get(1).(func([]byte) error); ok {
		r1 = rf(b)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// Write is a helper method to define mock.On call
//   - b []byte
func (_e *mockConn_Expecter) Write(b interface{}) *mockConn_Write_Call {
	return &mockConn_Write_Call{Call: _e.mock.On("Write", b)}
}

func (_c *mockConn_Write_Call) Run(run func(b []byte)) *mockConn_Write_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].([]byte))
	})
	return _c
}

func (_c *mockConn_Write_Call) Return(n int, err error) *mockConn_Write_Call {
	_c.Call.Return(n, err)
	return _c
}

func (_c *mockConn_Write_Call) RunAndReturn(run func([]byte) (int, error)) *mockConn_Write_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
