assert

package
v0.0.0-...-aee3e03 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cases

func Cases(t *testing.T, cases []*TestCase, fn func(in interface{}) (out interface{}, err error))

Cases fails for tests if the test case data [Given] is not equals [Expected] or causes an error and does not match the corresponding [HasError] flag.

func That

func That(t *testing.T, given, expected interface{})

That ...

Types

type TestCase

type TestCase struct {
	Name     string
	Given    interface{}
	Expected interface{}
	HasError bool
}

TestCase ...

Jump to

Keyboard shortcuts

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