github.com/secure-build/gitlab-runner@v12.5.0+incompatible/session/terminal/mock_Conn.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 http "net/http"
     8  import mock "github.com/stretchr/testify/mock"
     9  
    10  // MockConn is an autogenerated mock type for the Conn type
    11  type MockConn struct {
    12  	mock.Mock
    13  }
    14  
    15  // Close provides a mock function with given fields:
    16  func (_m *MockConn) Close() error {
    17  	ret := _m.Called()
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func() error); ok {
    21  		r0 = rf()
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // Start provides a mock function with given fields: w, r, timeoutCh, disconnectCh
    30  func (_m *MockConn) Start(w http.ResponseWriter, r *http.Request, timeoutCh chan error, disconnectCh chan error) {
    31  	_m.Called(w, r, timeoutCh, disconnectCh)
    32  }