Documentation ¶
Index ¶
- func AssertVarSubNode(t *testing.T, want any, actual visit.VarSubNode, messageAndArgs ...any)
- func NewKeyedNode(t *testing.T, content string) (visit.StringNode, *yaml.Node)
- func NewNode(t *testing.T, content string) *yaml.Node
- func RequireContainsErr(t *testing.T, errs errutil.Slice, err error)
- func RequireNoErr(t *testing.T, errs errutil.Slice)
- func RequireNotContainsErr(t *testing.T, errs errutil.Slice, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertVarSubNode ¶
AssertVarSubNode checks if the given node is of the wanted type and value. This function does not abort the test on failing assertion
func NewKeyedNode ¶
func NewKeyedNode(t *testing.T, content string) (visit.StringNode, *yaml.Node)
NewKeyedNode parses the YAML content and returns a new string key node and its child YAML node. Parsing failure will abort the test.
func NewNode ¶
NewNode parses the YAML content and returns a node. Parsing failure will abort the test.
func RequireContainsErr ¶
RequireContainsErr fails the test if no error in the slice Is the given error.
func RequireNoErr ¶
RequireNoErr fails the test if the error slice is not empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.