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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: go.uber.org/yarpc/api/transport (interfaces: Inbound)
     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  	transport "go.uber.org/yarpc/api/transport"
    30  	reflect "reflect"
    31  )
    32  
    33  // MockInbound is a mock of Inbound interface
    34  type MockInbound struct {
    35  	ctrl     *gomock.Controller
    36  	recorder *MockInboundMockRecorder
    37  }
    38  
    39  // MockInboundMockRecorder is the mock recorder for MockInbound
    40  type MockInboundMockRecorder struct {
    41  	mock *MockInbound
    42  }
    43  
    44  // NewMockInbound creates a new mock instance
    45  func NewMockInbound(ctrl *gomock.Controller) *MockInbound {
    46  	mock := &MockInbound{ctrl: ctrl}
    47  	mock.recorder = &MockInboundMockRecorder{mock}
    48  	return mock
    49  }
    50  
    51  // EXPECT returns an object that allows the caller to indicate expected use
    52  func (m *MockInbound) EXPECT() *MockInboundMockRecorder {
    53  	return m.recorder
    54  }
    55  
    56  // IsRunning mocks base method
    57  func (m *MockInbound) IsRunning() bool {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "IsRunning")
    60  	ret0, _ := ret[0].(bool)
    61  	return ret0
    62  }
    63  
    64  // IsRunning indicates an expected call of IsRunning
    65  func (mr *MockInboundMockRecorder) IsRunning() *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsRunning", reflect.TypeOf((*MockInbound)(nil).IsRunning))
    68  }
    69  
    70  // SetRouter mocks base method
    71  func (m *MockInbound) SetRouter(arg0 transport.Router) {
    72  	m.ctrl.T.Helper()
    73  	m.ctrl.Call(m, "SetRouter", arg0)
    74  }
    75  
    76  // SetRouter indicates an expected call of SetRouter
    77  func (mr *MockInboundMockRecorder) SetRouter(arg0 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRouter", reflect.TypeOf((*MockInbound)(nil).SetRouter), arg0)
    80  }
    81  
    82  // Start mocks base method
    83  func (m *MockInbound) Start() error {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "Start")
    86  	ret0, _ := ret[0].(error)
    87  	return ret0
    88  }
    89  
    90  // Start indicates an expected call of Start
    91  func (mr *MockInboundMockRecorder) Start() *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockInbound)(nil).Start))
    94  }
    95  
    96  // Stop mocks base method
    97  func (m *MockInbound) Stop() error {
    98  	m.ctrl.T.Helper()
    99  	ret := m.ctrl.Call(m, "Stop")
   100  	ret0, _ := ret[0].(error)
   101  	return ret0
   102  }
   103  
   104  // Stop indicates an expected call of Stop
   105  func (mr *MockInboundMockRecorder) Stop() *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockInbound)(nil).Stop))
   108  }
   109  
   110  // Transports mocks base method
   111  func (m *MockInbound) Transports() []transport.Transport {
   112  	m.ctrl.T.Helper()
   113  	ret := m.ctrl.Call(m, "Transports")
   114  	ret0, _ := ret[0].([]transport.Transport)
   115  	return ret0
   116  }
   117  
   118  // Transports indicates an expected call of Transports
   119  func (mr *MockInboundMockRecorder) Transports() *gomock.Call {
   120  	mr.mock.ctrl.T.Helper()
   121  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Transports", reflect.TypeOf((*MockInbound)(nil).Transports))
   122  }