vppcallmock

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCtx

type TestCtx struct {
	MockVpp *mock.VppAdapter

	MockChannel *mockedChannel
	// contains filtered or unexported fields
}

TestCtx is helping structure for unit testing. It wraps VppAdapter which is used instead of real VPP

func SetupTestCtx

func SetupTestCtx(t *testing.T) *TestCtx

SetupTestCtx sets up all fields of TestCtx structure at the begining of test

func (*TestCtx) TeardownTestCtx

func (ctx *TestCtx) TeardownTestCtx()

TeardownTestCtx politely close all used resources

Jump to

Keyboard shortcuts

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