test

package
v0.0.0-...-632707f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 8 Imported by: 0

README

/test

Additional external test apps and test data. Feel free to structure the /test directory anyway you want. For bigger projects it makes sense to have a data subdirectory. For example, you can have /test/data or /test/testdata if you need Go to ignore what's in that directory. Note that Go will also ignore directories or files that begin with "." or "_", so you have more flexibility in terms of how you name your test data directory.

Examples:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelperCreatePropertiesMap

func HelperCreatePropertiesMap(props types.Properties) types.Properties

func HelperTestFixedValue

func HelperTestFixedValue(
	t *testing.T,
	value types.FixedValuePtr,
	cases map[string]struct {
		Object types.FixedValue
		Value  string
	},
)

func HelperTestOptionalProperties

func HelperTestOptionalProperties(
	t *testing.T,
	props types.Properties,
	optionalProps []string,
	factoryFunc func(types.Properties) (interface{}, error),
	testFunc func(interface{}),
) func(t *testing.T)

func HelperTestRequiredProperties

func HelperTestRequiredProperties(
	t *testing.T,
	props types.Properties,
	requiredProps []string,
	factoryFunc func(types.Properties) (interface{}, error),
) func(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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