Version: v0.0.8 Latest Latest

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

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 8 Imported by: 0




This section is empty.


This section is empty.


func CheckTestValue

func CheckTestValue(t *testing.T, key string, value interface{})

CheckTestValue will check that the passed value is equal to the testVectors value under the specified output value key. If generate is set to true, instead of checking the equality, the value will be stored in the testVector under the specified output value key.

func GetTestValue

func GetTestValue(key string) interface{}

GetTestValue takes the value from the testVectors under the specified input value key.

func InitTest

func InitTest(name string, gen bool) error

InitTest initializes the testgen framework.

func SetTestValue

func SetTestValue(key string, value interface{})

SetTestValue sets the value to the testVectors under the specified input value key.

func StopTest

func StopTest() error

StopTest will write the testVectors to the corresponding file if generate is true.


type TestData

type TestData struct {
	Input  map[string]interface{}
	Output map[string]interface{}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL