dubbo.apache.org/dubbo-go/v3@v3.1.1/protocol/mock/mock_invoker.go (about) 1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 // Code generated by MockGen. DO NOT EDIT. 19 // Source: invoker.go 20 21 // Package mock is a generated GoMock package. 22 package mock 23 24 import ( 25 context "context" 26 reflect "reflect" 27 ) 28 29 import ( 30 gomock "github.com/golang/mock/gomock" 31 ) 32 33 import ( 34 common "dubbo.apache.org/dubbo-go/v3/common" 35 protocol "dubbo.apache.org/dubbo-go/v3/protocol" 36 ) 37 38 // MockInvoker is a mock of Invoker interface. 39 type MockInvoker struct { 40 ctrl *gomock.Controller 41 recorder *MockInvokerMockRecorder 42 } 43 44 // MockInvokerMockRecorder is the mock recorder for MockInvoker. 45 type MockInvokerMockRecorder struct { 46 mock *MockInvoker 47 } 48 49 // NewMockInvoker creates a new mock instance. 50 func NewMockInvoker(ctrl *gomock.Controller) *MockInvoker { 51 mock := &MockInvoker{ctrl: ctrl} 52 mock.recorder = &MockInvokerMockRecorder{mock} 53 return mock 54 } 55 56 // EXPECT returns an object that allows the caller to indicate expected use. 57 func (m *MockInvoker) EXPECT() *MockInvokerMockRecorder { 58 return m.recorder 59 } 60 61 // Destroy mocks base method. 62 func (m *MockInvoker) Destroy() { 63 m.ctrl.T.Helper() 64 m.ctrl.Call(m, "Destroy") 65 } 66 67 // Destroy indicates an expected call of Destroy. 68 func (mr *MockInvokerMockRecorder) Destroy() *gomock.Call { 69 mr.mock.ctrl.T.Helper() 70 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockInvoker)(nil).Destroy)) 71 } 72 73 // GetURL mocks base method. 74 func (m *MockInvoker) GetURL() *common.URL { 75 m.ctrl.T.Helper() 76 ret := m.ctrl.Call(m, "GetURL") 77 ret0, _ := ret[0].(*common.URL) 78 return ret0 79 } 80 81 // GetURL indicates an expected call of GetURL. 82 func (mr *MockInvokerMockRecorder) GetURL() *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetURL", reflect.TypeOf((*MockInvoker)(nil).GetURL)) 85 } 86 87 // Invoke mocks base method. 88 func (m *MockInvoker) Invoke(arg0 context.Context, arg1 protocol.Invocation) protocol.Result { 89 m.ctrl.T.Helper() 90 ret := m.ctrl.Call(m, "Invoke", arg0, arg1) 91 ret0, _ := ret[0].(protocol.Result) 92 return ret0 93 } 94 95 // Invoke indicates an expected call of Invoke. 96 func (mr *MockInvokerMockRecorder) Invoke(arg0, arg1 interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Invoke", reflect.TypeOf((*MockInvoker)(nil).Invoke), arg0, arg1) 99 } 100 101 // IsAvailable mocks base method. 102 func (m *MockInvoker) IsAvailable() bool { 103 m.ctrl.T.Helper() 104 ret := m.ctrl.Call(m, "IsAvailable") 105 ret0, _ := ret[0].(bool) 106 return ret0 107 } 108 109 // IsAvailable indicates an expected call of IsAvailable. 110 func (mr *MockInvokerMockRecorder) IsAvailable() *gomock.Call { 111 mr.mock.ctrl.T.Helper() 112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAvailable", reflect.TypeOf((*MockInvoker)(nil).IsAvailable)) 113 }