schematests

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: BSD-3-Clause, MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableSchemaTestLogging

func DisableSchemaTestLogging()

func EnableSchemaTestLogging

func EnableSchemaTestLogging()

func NodeFinder

func NodeFinder(
	targetNode schema.Node,
	parentNode *schema.XNode,
	nodeToFind schema.NodeSpec,
	path []string,
	param interface{},
) (bool, bool, []interface{})

Helper function that can be passed into the schema.FindorWalk() function that finds a Node matching a path

func ValidateNodes

func ValidateNodes(
	t *testing.T,
	spec []schema.NodeSpec,
	st schema.ModelSet,
) (bool, []interface{})

Using the provided NodeSpec(s), check all nodes exist with the required properties. Return true if so (or if no nodes in the spec), otherwise false to indicate failure.

func WalkNodes

func WalkNodes(t *testing.T, st schema.ModelSet)

Useful if you want an indented dump of nodes in the schema tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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