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

package terminal

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

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

// Connect provides a mock function with given fields:
func (_m *MockInteractiveTerminal) Connect() (Conn, error) {
	ret := _m.Called()

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

	var r0 Conn
	var r1 error
	if rf, ok := ret.Get(0).(func() (Conn, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() Conn); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(Conn)
		}
	}

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

	return r0, r1
}

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

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

	return mock
}
