testhelper

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestFixtures

func TestFixtures(
	t *testing.T,
	dir string,
	createTestSpec func() interface{},
	createExpected func() interface{},
	check func(t *testing.T, spec interface{}, exp interface{}),
)

TestFixtures run tests using multi-doc yaml file

# first doc is the test spec some_args: ... spec:

a: b

--- # second doc is the expected result c: d

Types

This section is empty.

Jump to

Keyboard shortcuts

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