go.uber.org/yarpc@v1.72.1/api/peer/peertest/peer.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: go.uber.org/yarpc/api/peer (interfaces: Identifier,Peer) 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 peertest is a generated GoMock package. 25 package peertest 26 27 import ( 28 gomock "github.com/golang/mock/gomock" 29 peer "go.uber.org/yarpc/api/peer" 30 reflect "reflect" 31 ) 32 33 // MockIdentifier is a mock of Identifier interface 34 type MockIdentifier struct { 35 ctrl *gomock.Controller 36 recorder *MockIdentifierMockRecorder 37 } 38 39 // MockIdentifierMockRecorder is the mock recorder for MockIdentifier 40 type MockIdentifierMockRecorder struct { 41 mock *MockIdentifier 42 } 43 44 // NewMockIdentifier creates a new mock instance 45 func NewMockIdentifier(ctrl *gomock.Controller) *MockIdentifier { 46 mock := &MockIdentifier{ctrl: ctrl} 47 mock.recorder = &MockIdentifierMockRecorder{mock} 48 return mock 49 } 50 51 // EXPECT returns an object that allows the caller to indicate expected use 52 func (m *MockIdentifier) EXPECT() *MockIdentifierMockRecorder { 53 return m.recorder 54 } 55 56 // Identifier mocks base method 57 func (m *MockIdentifier) Identifier() string { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "Identifier") 60 ret0, _ := ret[0].(string) 61 return ret0 62 } 63 64 // Identifier indicates an expected call of Identifier 65 func (mr *MockIdentifierMockRecorder) Identifier() *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identifier", reflect.TypeOf((*MockIdentifier)(nil).Identifier)) 68 } 69 70 // MockPeer is a mock of Peer interface 71 type MockPeer struct { 72 ctrl *gomock.Controller 73 recorder *MockPeerMockRecorder 74 } 75 76 // MockPeerMockRecorder is the mock recorder for MockPeer 77 type MockPeerMockRecorder struct { 78 mock *MockPeer 79 } 80 81 // NewMockPeer creates a new mock instance 82 func NewMockPeer(ctrl *gomock.Controller) *MockPeer { 83 mock := &MockPeer{ctrl: ctrl} 84 mock.recorder = &MockPeerMockRecorder{mock} 85 return mock 86 } 87 88 // EXPECT returns an object that allows the caller to indicate expected use 89 func (m *MockPeer) EXPECT() *MockPeerMockRecorder { 90 return m.recorder 91 } 92 93 // EndRequest mocks base method 94 func (m *MockPeer) EndRequest() { 95 m.ctrl.T.Helper() 96 m.ctrl.Call(m, "EndRequest") 97 } 98 99 // EndRequest indicates an expected call of EndRequest 100 func (mr *MockPeerMockRecorder) EndRequest() *gomock.Call { 101 mr.mock.ctrl.T.Helper() 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndRequest", reflect.TypeOf((*MockPeer)(nil).EndRequest)) 103 } 104 105 // Identifier mocks base method 106 func (m *MockPeer) Identifier() string { 107 m.ctrl.T.Helper() 108 ret := m.ctrl.Call(m, "Identifier") 109 ret0, _ := ret[0].(string) 110 return ret0 111 } 112 113 // Identifier indicates an expected call of Identifier 114 func (mr *MockPeerMockRecorder) Identifier() *gomock.Call { 115 mr.mock.ctrl.T.Helper() 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identifier", reflect.TypeOf((*MockPeer)(nil).Identifier)) 117 } 118 119 // StartRequest mocks base method 120 func (m *MockPeer) StartRequest() { 121 m.ctrl.T.Helper() 122 m.ctrl.Call(m, "StartRequest") 123 } 124 125 // StartRequest indicates an expected call of StartRequest 126 func (mr *MockPeerMockRecorder) StartRequest() *gomock.Call { 127 mr.mock.ctrl.T.Helper() 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartRequest", reflect.TypeOf((*MockPeer)(nil).StartRequest)) 129 } 130 131 // Status mocks base method 132 func (m *MockPeer) Status() peer.Status { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "Status") 135 ret0, _ := ret[0].(peer.Status) 136 return ret0 137 } 138 139 // Status indicates an expected call of Status 140 func (mr *MockPeerMockRecorder) Status() *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockPeer)(nil).Status)) 143 }