go.uber.org/yarpc@v1.72.1/api/transport/transporttest/transport.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: go.uber.org/yarpc/api/transport (interfaces: Transport)
     3  
     4  // Copyright (c) 2022 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  // Package transporttest is a generated GoMock package.
    25  package transporttest
    26  
    27  import (
    28  	gomock "github.com/golang/mock/gomock"
    29  	reflect "reflect"
    30  )
    31  
    32  // MockTransport is a mock of Transport interface
    33  type MockTransport struct {
    34  	ctrl     *gomock.Controller
    35  	recorder *MockTransportMockRecorder
    36  }
    37  
    38  // MockTransportMockRecorder is the mock recorder for MockTransport
    39  type MockTransportMockRecorder struct {
    40  	mock *MockTransport
    41  }
    42  
    43  // NewMockTransport creates a new mock instance
    44  func NewMockTransport(ctrl *gomock.Controller) *MockTransport {
    45  	mock := &MockTransport{ctrl: ctrl}
    46  	mock.recorder = &MockTransportMockRecorder{mock}
    47  	return mock
    48  }
    49  
    50  // EXPECT returns an object that allows the caller to indicate expected use
    51  func (m *MockTransport) EXPECT() *MockTransportMockRecorder {
    52  	return m.recorder
    53  }
    54  
    55  // IsRunning mocks base method
    56  func (m *MockTransport) IsRunning() bool {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "IsRunning")
    59  	ret0, _ := ret[0].(bool)
    60  	return ret0
    61  }
    62  
    63  // IsRunning indicates an expected call of IsRunning
    64  func (mr *MockTransportMockRecorder) IsRunning() *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsRunning", reflect.TypeOf((*MockTransport)(nil).IsRunning))
    67  }
    68  
    69  // Start mocks base method
    70  func (m *MockTransport) Start() error {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "Start")
    73  	ret0, _ := ret[0].(error)
    74  	return ret0
    75  }
    76  
    77  // Start indicates an expected call of Start
    78  func (mr *MockTransportMockRecorder) Start() *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockTransport)(nil).Start))
    81  }
    82  
    83  // Stop mocks base method
    84  func (m *MockTransport) Stop() error {
    85  	m.ctrl.T.Helper()
    86  	ret := m.ctrl.Call(m, "Stop")
    87  	ret0, _ := ret[0].(error)
    88  	return ret0
    89  }
    90  
    91  // Stop indicates an expected call of Stop
    92  func (mr *MockTransportMockRecorder) Stop() *gomock.Call {
    93  	mr.mock.ctrl.T.Helper()
    94  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockTransport)(nil).Stop))
    95  }