mock_snet

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 10 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 MockConn

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

MockConn is a mock of Conn interface

func NewMockConn

func NewMockConn(ctrl *gomock.Controller) *MockConn

NewMockConn creates a new mock instance

func (*MockConn) BindAddr

func (m *MockConn) BindAddr() net.Addr

BindAddr mocks base method

func (*MockConn) Close

func (m *MockConn) Close() error

Close mocks base method

func (*MockConn) EXPECT

func (m *MockConn) EXPECT() *MockConnMockRecorder

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

func (*MockConn) LocalAddr

func (m *MockConn) LocalAddr() net.Addr

LocalAddr mocks base method

func (*MockConn) Read

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

Read mocks base method

func (*MockConn) ReadFrom

func (m *MockConn) ReadFrom(arg0 []byte) (int, net.Addr, error)

ReadFrom mocks base method

func (*MockConn) ReadFromSCION

func (m *MockConn) ReadFromSCION(arg0 []byte) (int, *snet.Addr, error)

ReadFromSCION mocks base method

func (*MockConn) RemoteAddr

func (m *MockConn) RemoteAddr() net.Addr

RemoteAddr mocks base method

func (*MockConn) SVC

func (m *MockConn) SVC() addr.HostSVC

SVC mocks base method

func (*MockConn) SetDeadline

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

SetDeadline mocks base method

func (*MockConn) SetReadDeadline

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

SetReadDeadline mocks base method

func (*MockConn) SetWriteDeadline

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

SetWriteDeadline mocks base method

func (*MockConn) Write

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

Write mocks base method

func (*MockConn) WriteTo

func (m *MockConn) WriteTo(arg0 []byte, arg1 net.Addr) (int, error)

WriteTo mocks base method

func (*MockConn) WriteToSCION

func (m *MockConn) WriteToSCION(arg0 []byte, arg1 *snet.Addr) (int, error)

WriteToSCION mocks base method

type MockConnMockRecorder

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

MockConnMockRecorder is the mock recorder for MockConn

func (*MockConnMockRecorder) BindAddr

func (mr *MockConnMockRecorder) BindAddr() *gomock.Call

BindAddr indicates an expected call of BindAddr

func (*MockConnMockRecorder) Close

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

Close indicates an expected call of Close

func (*MockConnMockRecorder) LocalAddr

func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr

func (*MockConnMockRecorder) Read

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

Read indicates an expected call of Read

func (*MockConnMockRecorder) ReadFrom

func (mr *MockConnMockRecorder) ReadFrom(arg0 interface{}) *gomock.Call

ReadFrom indicates an expected call of ReadFrom

func (*MockConnMockRecorder) ReadFromSCION

func (mr *MockConnMockRecorder) ReadFromSCION(arg0 interface{}) *gomock.Call

ReadFromSCION indicates an expected call of ReadFromSCION

func (*MockConnMockRecorder) RemoteAddr

func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call

RemoteAddr indicates an expected call of RemoteAddr

func (*MockConnMockRecorder) SVC

func (mr *MockConnMockRecorder) SVC() *gomock.Call

SVC indicates an expected call of SVC

func (*MockConnMockRecorder) SetDeadline

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

SetDeadline indicates an expected call of SetDeadline

func (*MockConnMockRecorder) SetReadDeadline

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

SetReadDeadline indicates an expected call of SetReadDeadline

func (*MockConnMockRecorder) SetWriteDeadline

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

SetWriteDeadline indicates an expected call of SetWriteDeadline

func (*MockConnMockRecorder) Write

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

Write indicates an expected call of Write

func (*MockConnMockRecorder) WriteTo

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

WriteTo indicates an expected call of WriteTo

func (*MockConnMockRecorder) WriteToSCION

func (mr *MockConnMockRecorder) WriteToSCION(arg0, arg1 interface{}) *gomock.Call

WriteToSCION indicates an expected call of WriteToSCION

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) DialSCIONWithBindSVC

func (m *MockNetwork) DialSCIONWithBindSVC(arg0 string, arg1, arg2, arg3 *snet.Addr, arg4 addr.HostSVC, arg5 time.Duration) (snet.Conn, error)

DialSCIONWithBindSVC 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) ListenSCIONWithBindSVC

func (m *MockNetwork) ListenSCIONWithBindSVC(arg0 string, arg1, arg2 *snet.Addr, arg3 addr.HostSVC, arg4 time.Duration) (snet.Conn, error)

ListenSCIONWithBindSVC mocks base method

type MockNetworkMockRecorder

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

MockNetworkMockRecorder is the mock recorder for MockNetwork

func (*MockNetworkMockRecorder) DialSCIONWithBindSVC

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

DialSCIONWithBindSVC indicates an expected call of DialSCIONWithBindSVC

func (*MockNetworkMockRecorder) ListenSCIONWithBindSVC

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

ListenSCIONWithBindSVC indicates an expected call of ListenSCIONWithBindSVC

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.SCIONPacket, arg1 *overlay.OverlayAddr) 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.SCIONPacket, arg1 *overlay.OverlayAddr) 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) RegisterTimeout

func (m *MockPacketDispatcherService) RegisterTimeout(arg0 addr.IA, arg1 *addr.AppAddr, arg2 *overlay.OverlayAddr, arg3 addr.HostSVC, arg4 time.Duration) (snet.PacketConn, uint16, error)

RegisterTimeout mocks base method

type MockPacketDispatcherServiceMockRecorder

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

MockPacketDispatcherServiceMockRecorder is the mock recorder for MockPacketDispatcherService

func (*MockPacketDispatcherServiceMockRecorder) RegisterTimeout

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

RegisterTimeout indicates an expected call of RegisterTimeout

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) Copy

func (m *MockPath) Copy() snet.Path

Copy 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) Expiry

func (m *MockPath) Expiry() time.Time

Expiry mocks base method

func (*MockPath) Fingerprint

func (m *MockPath) Fingerprint() string

Fingerprint mocks base method

func (*MockPath) Interfaces

func (m *MockPath) Interfaces() []sciond.PathInterface

Interfaces mocks base method

func (*MockPath) MTU

func (m *MockPath) MTU() uint16

MTU mocks base method

func (*MockPath) OverlayNextHop

func (m *MockPath) OverlayNextHop() *overlay.OverlayAddr

OverlayNextHop mocks base method

func (*MockPath) Path

func (m *MockPath) Path() *spath.Path

Path mocks base method

type MockPathMockRecorder

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

MockPathMockRecorder is the mock recorder for MockPath

func (*MockPathMockRecorder) Copy

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

Copy indicates an expected call of Copy

func (*MockPathMockRecorder) Destination

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

Destination indicates an expected call of Destination

func (*MockPathMockRecorder) Expiry

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

Expiry indicates an expected call of Expiry

func (*MockPathMockRecorder) Fingerprint

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

Fingerprint indicates an expected call of Fingerprint

func (*MockPathMockRecorder) Interfaces

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

Interfaces indicates an expected call of Interfaces

func (*MockPathMockRecorder) MTU

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

MTU indicates an expected call of MTU

func (*MockPathMockRecorder) OverlayNextHop

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

OverlayNextHop indicates an expected call of OverlayNextHop

func (*MockPathMockRecorder) Path

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

Path indicates an expected call of Path

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) LocalIA

func (m *MockRouter) LocalIA() addr.IA

LocalIA mocks base method

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) LocalIA

func (mr *MockRouterMockRecorder) LocalIA() *gomock.Call

LocalIA indicates an expected call of LocalIA

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