github.com/secure-build/gitlab-runner@v12.5.0+incompatible/session/terminal/mock_InteractiveTerminal.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // This comment works around https://github.com/vektra/mockery/issues/155
     4  
     5  package terminal
     6  
     7  import mock "github.com/stretchr/testify/mock"
     8  
     9  // MockInteractiveTerminal is an autogenerated mock type for the InteractiveTerminal type
    10  type MockInteractiveTerminal struct {
    11  	mock.Mock
    12  }
    13  
    14  // Connect provides a mock function with given fields:
    15  func (_m *MockInteractiveTerminal) Connect() (Conn, error) {
    16  	ret := _m.Called()
    17  
    18  	var r0 Conn
    19  	if rf, ok := ret.Get(0).(func() Conn); ok {
    20  		r0 = rf()
    21  	} else {
    22  		if ret.Get(0) != nil {
    23  			r0 = ret.Get(0).(Conn)
    24  		}
    25  	}
    26  
    27  	var r1 error
    28  	if rf, ok := ret.Get(1).(func() error); ok {
    29  		r1 = rf()
    30  	} else {
    31  		r1 = ret.Error(1)
    32  	}
    33  
    34  	return r0, r1
    35  }