github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/testing/mocks/dns.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: v2ray.com/core/features/dns (interfaces: Client) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 gomock "github.com/golang/mock/gomock" 9 net "net" 10 reflect "reflect" 11 ) 12 13 // DNSClient is a mock of Client interface 14 type DNSClient struct { 15 ctrl *gomock.Controller 16 recorder *DNSClientMockRecorder 17 } 18 19 // DNSClientMockRecorder is the mock recorder for DNSClient 20 type DNSClientMockRecorder struct { 21 mock *DNSClient 22 } 23 24 // NewDNSClient creates a new mock instance 25 func NewDNSClient(ctrl *gomock.Controller) *DNSClient { 26 mock := &DNSClient{ctrl: ctrl} 27 mock.recorder = &DNSClientMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use 32 func (m *DNSClient) EXPECT() *DNSClientMockRecorder { 33 return m.recorder 34 } 35 36 // Close mocks base method 37 func (m *DNSClient) Close() error { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "Close") 40 ret0, _ := ret[0].(error) 41 return ret0 42 } 43 44 // Close indicates an expected call of Close 45 func (mr *DNSClientMockRecorder) Close() *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*DNSClient)(nil).Close)) 48 } 49 50 // LookupIP mocks base method 51 func (m *DNSClient) LookupIP(arg0 string) ([]net.IP, error) { 52 m.ctrl.T.Helper() 53 ret := m.ctrl.Call(m, "LookupIP", arg0) 54 ret0, _ := ret[0].([]net.IP) 55 ret1, _ := ret[1].(error) 56 return ret0, ret1 57 } 58 59 // LookupIP indicates an expected call of LookupIP 60 func (mr *DNSClientMockRecorder) LookupIP(arg0 interface{}) *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LookupIP", reflect.TypeOf((*DNSClient)(nil).LookupIP), arg0) 63 } 64 65 // Start mocks base method 66 func (m *DNSClient) Start() error { 67 m.ctrl.T.Helper() 68 ret := m.ctrl.Call(m, "Start") 69 ret0, _ := ret[0].(error) 70 return ret0 71 } 72 73 // Start indicates an expected call of Start 74 func (mr *DNSClientMockRecorder) Start() *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*DNSClient)(nil).Start)) 77 } 78 79 // Type mocks base method 80 func (m *DNSClient) Type() interface{} { 81 m.ctrl.T.Helper() 82 ret := m.ctrl.Call(m, "Type") 83 ret0, _ := ret[0].(interface{}) 84 return ret0 85 } 86 87 // Type indicates an expected call of Type 88 func (mr *DNSClientMockRecorder) Type() *gomock.Call { 89 mr.mock.ctrl.T.Helper() 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*DNSClient)(nil).Type)) 91 }