github.com/EagleQL/Xray-core@v1.4.3/testing/mocks/dns.go (about)

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