You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray-core/testing/mocks/dns.go

92 lines
2.5 KiB

// Code generated by MockGen. DO NOT EDIT.
// Source: v2ray.com/core/features/dns (interfaces: Client)
// Package mocks is a generated GoMock package.
package mocks
import (
gomock "github.com/golang/mock/gomock"
net "net"
reflect "reflect"
)
6 years ago
// DNSClient is a mock of Client interface
type DNSClient struct {
ctrl *gomock.Controller
6 years ago
recorder *DNSClientMockRecorder
}
6 years ago
// DNSClientMockRecorder is the mock recorder for DNSClient
type DNSClientMockRecorder struct {
mock *DNSClient
}
6 years ago
// NewDNSClient creates a new mock instance
func NewDNSClient(ctrl *gomock.Controller) *DNSClient {
mock := &DNSClient{ctrl: ctrl}
mock.recorder = &DNSClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
6 years ago
func (m *DNSClient) EXPECT() *DNSClientMockRecorder {
return m.recorder
}
// Close mocks base method
6 years ago
func (m *DNSClient) Close() error {
6 years ago
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close
6 years ago
func (mr *DNSClientMockRecorder) Close() *gomock.Call {
6 years ago
mr.mock.ctrl.T.Helper()
6 years ago
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*DNSClient)(nil).Close))
}
// LookupIP mocks base method
6 years ago
func (m *DNSClient) LookupIP(arg0 string) ([]net.IP, error) {
6 years ago
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LookupIP", arg0)
ret0, _ := ret[0].([]net.IP)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LookupIP indicates an expected call of LookupIP
6 years ago
func (mr *DNSClientMockRecorder) LookupIP(arg0 interface{}) *gomock.Call {
6 years ago
mr.mock.ctrl.T.Helper()
6 years ago
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LookupIP", reflect.TypeOf((*DNSClient)(nil).LookupIP), arg0)
}
// Start mocks base method
6 years ago
func (m *DNSClient) Start() error {
6 years ago
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Start")
ret0, _ := ret[0].(error)
return ret0
}
// Start indicates an expected call of Start
6 years ago
func (mr *DNSClientMockRecorder) Start() *gomock.Call {
6 years ago
mr.mock.ctrl.T.Helper()
6 years ago
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*DNSClient)(nil).Start))
}
// Type mocks base method
6 years ago
func (m *DNSClient) Type() interface{} {
6 years ago
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Type")
ret0, _ := ret[0].(interface{})
return ret0
}
// Type indicates an expected call of Type
6 years ago
func (mr *DNSClientMockRecorder) Type() *gomock.Call {
6 years ago
mr.mock.ctrl.T.Helper()
6 years ago
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*DNSClient)(nil).Type))
}