mock_snet

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_snet is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNetwork

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

MockNetwork is a mock of Network interface.

func NewMockNetwork

func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork

NewMockNetwork creates a new mock instance.

func (*MockNetwork) Dial added in v0.5.0

func (m *MockNetwork) Dial(arg0 context.Context, arg1 string, arg2 *net.UDPAddr, arg3 *snet.UDPAddr, arg4 addr.HostSVC) (*snet.Conn, error)

Dial mocks base method.

func (*MockNetwork) EXPECT

func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder

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

func (*MockNetwork) Listen added in v0.5.0

func (m *MockNetwork) Listen(arg0 context.Context, arg1 string, arg2 *net.UDPAddr, arg3 addr.HostSVC) (*snet.Conn, error)

Listen mocks base method.

type MockNetworkMockRecorder

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

MockNetworkMockRecorder is the mock recorder for MockNetwork.

func (*MockNetworkMockRecorder) Dial added in v0.5.0

func (mr *MockNetworkMockRecorder) Dial(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Dial indicates an expected call of Dial.

func (*MockNetworkMockRecorder) Listen added in v0.5.0

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

Listen indicates an expected call of Listen.

type MockPacketConn

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

MockPacketConn is a mock of PacketConn interface.

func NewMockPacketConn

func NewMockPacketConn(ctrl *gomock.Controller) *MockPacketConn

NewMockPacketConn creates a new mock instance.

func (*MockPacketConn) Close

func (m *MockPacketConn) Close() error

Close mocks base method.

func (*MockPacketConn) EXPECT

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

func (*MockPacketConn) ReadFrom

func (m *MockPacketConn) ReadFrom(arg0 *snet.Packet, arg1 *net.UDPAddr) error

ReadFrom mocks base method.

func (*MockPacketConn) SetDeadline

func (m *MockPacketConn) SetDeadline(arg0 time.Time) error

SetDeadline mocks base method.

func (*MockPacketConn) SetReadDeadline

func (m *MockPacketConn) SetReadDeadline(arg0 time.Time) error

SetReadDeadline mocks base method.

func (*MockPacketConn) SetWriteDeadline

func (m *MockPacketConn) SetWriteDeadline(arg0 time.Time) error

SetWriteDeadline mocks base method.

func (*MockPacketConn) WriteTo

func (m *MockPacketConn) WriteTo(arg0 *snet.Packet, arg1 *net.UDPAddr) error

WriteTo mocks base method.

type MockPacketConnMockRecorder

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

MockPacketConnMockRecorder is the mock recorder for MockPacketConn.

func (*MockPacketConnMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockPacketConnMockRecorder) ReadFrom

func (mr *MockPacketConnMockRecorder) ReadFrom(arg0, arg1 interface{}) *gomock.Call

ReadFrom indicates an expected call of ReadFrom.

func (*MockPacketConnMockRecorder) SetDeadline

func (mr *MockPacketConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline.

func (*MockPacketConnMockRecorder) SetReadDeadline

func (mr *MockPacketConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockPacketConnMockRecorder) SetWriteDeadline

func (mr *MockPacketConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockPacketConnMockRecorder) WriteTo

func (mr *MockPacketConnMockRecorder) WriteTo(arg0, arg1 interface{}) *gomock.Call

WriteTo indicates an expected call of WriteTo.

type MockPacketDispatcherService

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

MockPacketDispatcherService is a mock of PacketDispatcherService interface.

func NewMockPacketDispatcherService

func NewMockPacketDispatcherService(ctrl *gomock.Controller) *MockPacketDispatcherService

NewMockPacketDispatcherService creates a new mock instance.

func (*MockPacketDispatcherService) EXPECT

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

func (*MockPacketDispatcherService) Register added in v0.5.0

func (m *MockPacketDispatcherService) Register(arg0 context.Context, arg1 addr.IA, arg2 *net.UDPAddr, arg3 addr.HostSVC) (snet.PacketConn, uint16, error)

Register mocks base method.

type MockPacketDispatcherServiceMockRecorder

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

MockPacketDispatcherServiceMockRecorder is the mock recorder for MockPacketDispatcherService.

func (*MockPacketDispatcherServiceMockRecorder) Register added in v0.5.0

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

Register indicates an expected call of Register.

type MockPath

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

MockPath is a mock of Path interface.

func NewMockPath

func NewMockPath(ctrl *gomock.Controller) *MockPath

NewMockPath creates a new mock instance.

func (*MockPath) Dataplane added in v0.7.0

func (m *MockPath) Dataplane() snet.DataplanePath

Dataplane mocks base method.

func (*MockPath) Destination

func (m *MockPath) Destination() addr.IA

Destination mocks base method.

func (*MockPath) EXPECT

func (m *MockPath) EXPECT() *MockPathMockRecorder

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

func (*MockPath) Metadata added in v0.6.0

func (m *MockPath) Metadata() *snet.PathMetadata

Metadata mocks base method.

func (*MockPath) Source added in v0.7.0

func (m *MockPath) Source() addr.IA

Source mocks base method.

func (*MockPath) UnderlayNextHop added in v0.6.0

func (m *MockPath) UnderlayNextHop() *net.UDPAddr

UnderlayNextHop mocks base method.

type MockPathMockRecorder

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

MockPathMockRecorder is the mock recorder for MockPath.

func (*MockPathMockRecorder) Dataplane added in v0.7.0

func (mr *MockPathMockRecorder) Dataplane() *gomock.Call

Dataplane indicates an expected call of Dataplane.

func (*MockPathMockRecorder) Destination

func (mr *MockPathMockRecorder) Destination() *gomock.Call

Destination indicates an expected call of Destination.

func (*MockPathMockRecorder) Metadata added in v0.6.0

func (mr *MockPathMockRecorder) Metadata() *gomock.Call

Metadata indicates an expected call of Metadata.

func (*MockPathMockRecorder) Source added in v0.7.0

func (mr *MockPathMockRecorder) Source() *gomock.Call

Source indicates an expected call of Source.

func (*MockPathMockRecorder) UnderlayNextHop added in v0.6.0

func (mr *MockPathMockRecorder) UnderlayNextHop() *gomock.Call

UnderlayNextHop indicates an expected call of UnderlayNextHop.

type MockPathQuerier added in v0.5.0

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

MockPathQuerier is a mock of PathQuerier interface.

func NewMockPathQuerier added in v0.5.0

func NewMockPathQuerier(ctrl *gomock.Controller) *MockPathQuerier

NewMockPathQuerier creates a new mock instance.

func (*MockPathQuerier) EXPECT added in v0.5.0

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

func (*MockPathQuerier) Query added in v0.5.0

func (m *MockPathQuerier) Query(arg0 context.Context, arg1 addr.IA) ([]snet.Path, error)

Query mocks base method.

type MockPathQuerierMockRecorder added in v0.5.0

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

MockPathQuerierMockRecorder is the mock recorder for MockPathQuerier.

func (*MockPathQuerierMockRecorder) Query added in v0.5.0

func (mr *MockPathQuerierMockRecorder) Query(arg0, arg1 interface{}) *gomock.Call

Query indicates an expected call of Query.

type MockRevocationHandler added in v0.6.0

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

MockRevocationHandler is a mock of RevocationHandler interface.

func NewMockRevocationHandler added in v0.6.0

func NewMockRevocationHandler(ctrl *gomock.Controller) *MockRevocationHandler

NewMockRevocationHandler creates a new mock instance.

func (*MockRevocationHandler) EXPECT added in v0.6.0

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

func (*MockRevocationHandler) Revoke added in v0.7.0

Revoke mocks base method.

type MockRevocationHandlerMockRecorder added in v0.6.0

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

MockRevocationHandlerMockRecorder is the mock recorder for MockRevocationHandler.

func (*MockRevocationHandlerMockRecorder) Revoke added in v0.7.0

func (mr *MockRevocationHandlerMockRecorder) Revoke(arg0, arg1 interface{}) *gomock.Call

Revoke indicates an expected call of Revoke.

type MockRouter

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

MockRouter is a mock of Router interface.

func NewMockRouter

func NewMockRouter(ctrl *gomock.Controller) *MockRouter

NewMockRouter creates a new mock instance.

func (*MockRouter) AllRoutes

func (m *MockRouter) AllRoutes(arg0 context.Context, arg1 addr.IA) ([]snet.Path, error)

AllRoutes mocks base method.

func (*MockRouter) EXPECT

func (m *MockRouter) EXPECT() *MockRouterMockRecorder

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

func (*MockRouter) Route

func (m *MockRouter) Route(arg0 context.Context, arg1 addr.IA) (snet.Path, error)

Route mocks base method.

type MockRouterMockRecorder

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

MockRouterMockRecorder is the mock recorder for MockRouter.

func (*MockRouterMockRecorder) AllRoutes

func (mr *MockRouterMockRecorder) AllRoutes(arg0, arg1 interface{}) *gomock.Call

AllRoutes indicates an expected call of AllRoutes.

func (*MockRouterMockRecorder) Route

func (mr *MockRouterMockRecorder) Route(arg0, arg1 interface{}) *gomock.Call

Route indicates an expected call of Route.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL