github.com/unionj-cloud/go-doudou/v2@v2.3.5/toolkit/memberlist/mock/mock_dns_client_interface.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ./dns_client_interface.go
     3  
     4  // Package mock is a generated GoMock package.
     5  package mock
     6  
     7  import (
     8  	reflect "reflect"
     9  	time "time"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	dns "github.com/miekg/dns"
    13  )
    14  
    15  // MockIDNSClient is a mock of IDNSClient interface.
    16  type MockIDNSClient struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockIDNSClientMockRecorder
    19  }
    20  
    21  // MockIDNSClientMockRecorder is the mock recorder for MockIDNSClient.
    22  type MockIDNSClientMockRecorder struct {
    23  	mock *MockIDNSClient
    24  }
    25  
    26  // NewMockIDNSClient creates a new mock instance.
    27  func NewMockIDNSClient(ctrl *gomock.Controller) *MockIDNSClient {
    28  	mock := &MockIDNSClient{ctrl: ctrl}
    29  	mock.recorder = &MockIDNSClientMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockIDNSClient) EXPECT() *MockIDNSClientMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Exchange mocks base method.
    39  func (m_2 *MockIDNSClient) Exchange(m *dns.Msg, address string) (*dns.Msg, time.Duration, error) {
    40  	m_2.ctrl.T.Helper()
    41  	ret := m_2.ctrl.Call(m_2, "Exchange", m, address)
    42  	ret0, _ := ret[0].(*dns.Msg)
    43  	ret1, _ := ret[1].(time.Duration)
    44  	ret2, _ := ret[2].(error)
    45  	return ret0, ret1, ret2
    46  }
    47  
    48  // Exchange indicates an expected call of Exchange.
    49  func (mr *MockIDNSClientMockRecorder) Exchange(m, address interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exchange", reflect.TypeOf((*MockIDNSClient)(nil).Exchange), m, address)
    52  }