core: v2ray.com/core/testing/mocks Index | Files

package mocks

import "v2ray.com/core/testing/mocks"

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Package Files

dns.go io.go log.go mux.go outbound.go proxy.go

type DNSClient Uses

type DNSClient struct {
    // contains filtered or unexported fields
}

DNSClient is a mock of Client interface

func NewDNSClient Uses

func NewDNSClient(ctrl *gomock.Controller) *DNSClient

NewDNSClient creates a new mock instance

func (*DNSClient) Close Uses

func (m *DNSClient) Close() error

Close mocks base method

func (*DNSClient) EXPECT Uses

func (m *DNSClient) EXPECT() *DNSClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*DNSClient) LookupIP Uses

func (m *DNSClient) LookupIP(arg0 string) ([]net.IP, error)

LookupIP mocks base method

func (*DNSClient) Start Uses

func (m *DNSClient) Start() error

Start mocks base method

func (*DNSClient) Type Uses

func (m *DNSClient) Type() interface{}

Type mocks base method

type DNSClientMockRecorder Uses

type DNSClientMockRecorder struct {
    // contains filtered or unexported fields
}

DNSClientMockRecorder is the mock recorder for DNSClient

func (*DNSClientMockRecorder) Close Uses

func (mr *DNSClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*DNSClientMockRecorder) LookupIP Uses

func (mr *DNSClientMockRecorder) LookupIP(arg0 interface{}) *gomock.Call

LookupIP indicates an expected call of LookupIP

func (*DNSClientMockRecorder) Start Uses

func (mr *DNSClientMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*DNSClientMockRecorder) Type Uses

func (mr *DNSClientMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type

type LogHandler Uses

type LogHandler struct {
    // contains filtered or unexported fields
}

LogHandler is a mock of Handler interface

func NewLogHandler Uses

func NewLogHandler(ctrl *gomock.Controller) *LogHandler

NewLogHandler creates a new mock instance

func (*LogHandler) EXPECT Uses

func (m *LogHandler) EXPECT() *LogHandlerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*LogHandler) Handle Uses

func (m *LogHandler) Handle(arg0 log.Message)

Handle mocks base method

type LogHandlerMockRecorder Uses

type LogHandlerMockRecorder struct {
    // contains filtered or unexported fields
}

LogHandlerMockRecorder is the mock recorder for LogHandler

func (*LogHandlerMockRecorder) Handle Uses

func (mr *LogHandlerMockRecorder) Handle(arg0 interface{}) *gomock.Call

Handle indicates an expected call of Handle

type MuxClientWorkerFactory Uses

type MuxClientWorkerFactory struct {
    // contains filtered or unexported fields
}

MuxClientWorkerFactory is a mock of ClientWorkerFactory interface

func NewMuxClientWorkerFactory Uses

func NewMuxClientWorkerFactory(ctrl *gomock.Controller) *MuxClientWorkerFactory

NewMuxClientWorkerFactory creates a new mock instance

func (*MuxClientWorkerFactory) Create Uses

func (m *MuxClientWorkerFactory) Create() (*mux.ClientWorker, error)

Create mocks base method

func (*MuxClientWorkerFactory) EXPECT Uses

func (m *MuxClientWorkerFactory) EXPECT() *MuxClientWorkerFactoryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MuxClientWorkerFactoryMockRecorder Uses

type MuxClientWorkerFactoryMockRecorder struct {
    // contains filtered or unexported fields
}

MuxClientWorkerFactoryMockRecorder is the mock recorder for MuxClientWorkerFactory

func (*MuxClientWorkerFactoryMockRecorder) Create Uses

func (mr *MuxClientWorkerFactoryMockRecorder) Create() *gomock.Call

Create indicates an expected call of Create

type OutboundHandlerSelector Uses

type OutboundHandlerSelector struct {
    // contains filtered or unexported fields
}

OutboundHandlerSelector is a mock of HandlerSelector interface

func NewOutboundHandlerSelector Uses

func NewOutboundHandlerSelector(ctrl *gomock.Controller) *OutboundHandlerSelector

NewOutboundHandlerSelector creates a new mock instance

func (*OutboundHandlerSelector) EXPECT Uses

func (m *OutboundHandlerSelector) EXPECT() *OutboundHandlerSelectorMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*OutboundHandlerSelector) Select Uses

func (m *OutboundHandlerSelector) Select(arg0 []string) []string

Select mocks base method

type OutboundHandlerSelectorMockRecorder Uses

type OutboundHandlerSelectorMockRecorder struct {
    // contains filtered or unexported fields
}

OutboundHandlerSelectorMockRecorder is the mock recorder for OutboundHandlerSelector

func (*OutboundHandlerSelectorMockRecorder) Select Uses

func (mr *OutboundHandlerSelectorMockRecorder) Select(arg0 interface{}) *gomock.Call

Select indicates an expected call of Select

type OutboundManager Uses

type OutboundManager struct {
    // contains filtered or unexported fields
}

OutboundManager is a mock of Manager interface

func NewOutboundManager Uses

func NewOutboundManager(ctrl *gomock.Controller) *OutboundManager

NewOutboundManager creates a new mock instance

func (*OutboundManager) AddHandler Uses

func (m *OutboundManager) AddHandler(arg0 context.Context, arg1 outbound.Handler) error

AddHandler mocks base method

func (*OutboundManager) Close Uses

func (m *OutboundManager) Close() error

Close mocks base method

func (*OutboundManager) EXPECT Uses

func (m *OutboundManager) EXPECT() *OutboundManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*OutboundManager) GetDefaultHandler Uses

func (m *OutboundManager) GetDefaultHandler() outbound.Handler

GetDefaultHandler mocks base method

func (*OutboundManager) GetHandler Uses

func (m *OutboundManager) GetHandler(arg0 string) outbound.Handler

GetHandler mocks base method

func (*OutboundManager) RemoveHandler Uses

func (m *OutboundManager) RemoveHandler(arg0 context.Context, arg1 string) error

RemoveHandler mocks base method

func (*OutboundManager) Start Uses

func (m *OutboundManager) Start() error

Start mocks base method

func (*OutboundManager) Type Uses

func (m *OutboundManager) Type() interface{}

Type mocks base method

type OutboundManagerMockRecorder Uses

type OutboundManagerMockRecorder struct {
    // contains filtered or unexported fields
}

OutboundManagerMockRecorder is the mock recorder for OutboundManager

func (*OutboundManagerMockRecorder) AddHandler Uses

func (mr *OutboundManagerMockRecorder) AddHandler(arg0, arg1 interface{}) *gomock.Call

AddHandler indicates an expected call of AddHandler

func (*OutboundManagerMockRecorder) Close Uses

func (mr *OutboundManagerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*OutboundManagerMockRecorder) GetDefaultHandler Uses

func (mr *OutboundManagerMockRecorder) GetDefaultHandler() *gomock.Call

GetDefaultHandler indicates an expected call of GetDefaultHandler

func (*OutboundManagerMockRecorder) GetHandler Uses

func (mr *OutboundManagerMockRecorder) GetHandler(arg0 interface{}) *gomock.Call

GetHandler indicates an expected call of GetHandler

func (*OutboundManagerMockRecorder) RemoveHandler Uses

func (mr *OutboundManagerMockRecorder) RemoveHandler(arg0, arg1 interface{}) *gomock.Call

RemoveHandler indicates an expected call of RemoveHandler

func (*OutboundManagerMockRecorder) Start Uses

func (mr *OutboundManagerMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*OutboundManagerMockRecorder) Type Uses

func (mr *OutboundManagerMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type

type ProxyInbound Uses

type ProxyInbound struct {
    // contains filtered or unexported fields
}

ProxyInbound is a mock of Inbound interface

func NewProxyInbound Uses

func NewProxyInbound(ctrl *gomock.Controller) *ProxyInbound

NewProxyInbound creates a new mock instance

func (*ProxyInbound) EXPECT Uses

func (m *ProxyInbound) EXPECT() *ProxyInboundMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*ProxyInbound) Network Uses

func (m *ProxyInbound) Network() []net.Network

Network mocks base method

func (*ProxyInbound) Process Uses

func (m *ProxyInbound) Process(arg0 context.Context, arg1 net.Network, arg2 internet.Connection, arg3 routing.Dispatcher) error

Process mocks base method

type ProxyInboundMockRecorder Uses

type ProxyInboundMockRecorder struct {
    // contains filtered or unexported fields
}

ProxyInboundMockRecorder is the mock recorder for ProxyInbound

func (*ProxyInboundMockRecorder) Network Uses

func (mr *ProxyInboundMockRecorder) Network() *gomock.Call

Network indicates an expected call of Network

func (*ProxyInboundMockRecorder) Process Uses

func (mr *ProxyInboundMockRecorder) Process(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Process indicates an expected call of Process

type ProxyOutbound Uses

type ProxyOutbound struct {
    // contains filtered or unexported fields
}

ProxyOutbound is a mock of Outbound interface

func NewProxyOutbound Uses

func NewProxyOutbound(ctrl *gomock.Controller) *ProxyOutbound

NewProxyOutbound creates a new mock instance

func (*ProxyOutbound) EXPECT Uses

func (m *ProxyOutbound) EXPECT() *ProxyOutboundMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*ProxyOutbound) Process Uses

func (m *ProxyOutbound) Process(arg0 context.Context, arg1 *transport.Link, arg2 internet.Dialer) error

Process mocks base method

type ProxyOutboundMockRecorder Uses

type ProxyOutboundMockRecorder struct {
    // contains filtered or unexported fields
}

ProxyOutboundMockRecorder is the mock recorder for ProxyOutbound

func (*ProxyOutboundMockRecorder) Process Uses

func (mr *ProxyOutboundMockRecorder) Process(arg0, arg1, arg2 interface{}) *gomock.Call

Process indicates an expected call of Process

type Reader Uses

type Reader struct {
    // contains filtered or unexported fields
}

Reader is a mock of Reader interface

func NewReader Uses

func NewReader(ctrl *gomock.Controller) *Reader

NewReader creates a new mock instance

func (*Reader) EXPECT Uses

func (m *Reader) EXPECT() *ReaderMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*Reader) Read Uses

func (m *Reader) Read(arg0 []byte) (int, error)

Read mocks base method

type ReaderMockRecorder Uses

type ReaderMockRecorder struct {
    // contains filtered or unexported fields
}

ReaderMockRecorder is the mock recorder for Reader

func (*ReaderMockRecorder) Read Uses

func (mr *ReaderMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read

type Writer Uses

type Writer struct {
    // contains filtered or unexported fields
}

Writer is a mock of Writer interface

func NewWriter Uses

func NewWriter(ctrl *gomock.Controller) *Writer

NewWriter creates a new mock instance

func (*Writer) EXPECT Uses

func (m *Writer) EXPECT() *WriterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*Writer) Write Uses

func (m *Writer) Write(arg0 []byte) (int, error)

Write mocks base method

type WriterMockRecorder Uses

type WriterMockRecorder struct {
    // contains filtered or unexported fields
}

WriterMockRecorder is the mock recorder for Writer

func (*WriterMockRecorder) Write Uses

func (mr *WriterMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

Package mocks imports 11 packages (graph). Updated 2019-04-09. Refresh now. Tools for package owners.