testutil

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualYAML

func EqualYAML(t *testing.T, want []byte, got []byte)

EqualYAML asserts that two YAML documents are semantically equal. It returns a cmp.Diff if they are not.

func YAMLToInterface

func YAMLToInterface(t *testing.T, data []byte) interface{}

YAMLToInterface parses a YAML blob into an interface{}. Use it before comparing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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