github.com/xmplusdev/xray-core@v1.8.10/testing/mocks/dns.go (about)

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