testutil

package module
v0.0.0-...-0f26add Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateByteString

func CreateByteString(bitDefinitions []map[string]int) []byte

func GetTestData

func GetTestData(inputFile string) (map[string]*Test, error)

func IterateTests

func IterateTests(inputFile string, callback func(name string, test Test)) error

Types

type Expected

type Expected []map[string]interface{}

type Result

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

func Compare

func Compare(expectedValues Expected, object interface{}) *Result

func (*Result) Addf

func (r *Result) Addf(format string, a ...interface{})

func (*Result) Failed

func (r *Result) Failed() bool

func (*Result) String

func (r *Result) String() string

type Test

type Test struct {
	Bits     []map[string]int
	Input    []byte
	Expected Expected
	Err      string `yaml:"error"`
}

Jump to

Keyboard shortcuts

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