github.com/cloudwego/kitex@v0.9.0/internal/mocks/remote/dialer.go (about) 1 /* 2 * Copyright 2022 CloudWeGo Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18 // Code generated by MockGen. DO NOT EDIT. 19 // Source: ../../pkg/remote/dialer.go 20 21 // Package remote is a generated GoMock package. 22 package remote 23 24 import ( 25 net "net" 26 reflect "reflect" 27 time "time" 28 29 gomock "github.com/golang/mock/gomock" 30 ) 31 32 // MockDialer is a mock of Dialer interface. 33 type MockDialer struct { 34 ctrl *gomock.Controller 35 recorder *MockDialerMockRecorder 36 } 37 38 // MockDialerMockRecorder is the mock recorder for MockDialer. 39 type MockDialerMockRecorder struct { 40 mock *MockDialer 41 } 42 43 // NewMockDialer creates a new mock instance. 44 func NewMockDialer(ctrl *gomock.Controller) *MockDialer { 45 mock := &MockDialer{ctrl: ctrl} 46 mock.recorder = &MockDialerMockRecorder{mock} 47 return mock 48 } 49 50 // EXPECT returns an object that allows the caller to indicate expected use. 51 func (m *MockDialer) EXPECT() *MockDialerMockRecorder { 52 return m.recorder 53 } 54 55 // DialTimeout mocks base method. 56 func (m *MockDialer) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error) { 57 m.ctrl.T.Helper() 58 ret := m.ctrl.Call(m, "DialTimeout", network, address, timeout) 59 ret0, _ := ret[0].(net.Conn) 60 ret1, _ := ret[1].(error) 61 return ret0, ret1 62 } 63 64 // DialTimeout indicates an expected call of DialTimeout. 65 func (mr *MockDialerMockRecorder) DialTimeout(network, address, timeout interface{}) *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialTimeout", reflect.TypeOf((*MockDialer)(nil).DialTimeout), network, address, timeout) 68 }