Documentation ¶
Overview ¶
Package testutil has few util functions for testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection() *networkservice.NetworkServiceRequest
NewConnection - create connection for testing
Types ¶
type CustomError ¶
type CustomError struct{}
CustomError - custom error for testing
func (*CustomError) StackTrace ¶
func (*CustomError) StackTrace() errors.StackTrace
StackTrace - testing errors utility
type ErrorServer ¶
type ErrorServer struct{}
ErrorServer - error server for testing
func (*ErrorServer) Close ¶
func (c *ErrorServer) Close(ctx context.Context, connection *networkservice.Connection) (*empty.Empty, error)
Close - test request
func (*ErrorServer) Request ¶
func (c *ErrorServer) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*networkservice.Connection, error)
Request - test request
type LabelChangerFirstServer ¶
type LabelChangerFirstServer struct{}
LabelChangerFirstServer - common server for testing
func (*LabelChangerFirstServer) Close ¶
func (c *LabelChangerFirstServer) Close(ctx context.Context, connection *networkservice.Connection) (*empty.Empty, error)
Close - test request
func (*LabelChangerFirstServer) Request ¶
func (c *LabelChangerFirstServer) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*networkservice.Connection, error)
Request - test request
type LabelChangerSecondServer ¶
type LabelChangerSecondServer struct{}
LabelChangerSecondServer - common server for testing
func (*LabelChangerSecondServer) Close ¶
func (c *LabelChangerSecondServer) Close(ctx context.Context, connection *networkservice.Connection) (*empty.Empty, error)
Close - test request
func (*LabelChangerSecondServer) Request ¶
func (c *LabelChangerSecondServer) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*networkservice.Connection, error)
Request - test request
Click to show internal directories.
Click to hide internal directories.