import "istio.io/istio/pilot/test/util"
Compare compares two byte slices. It returns an error with a contextual diff if they are not equal.
CompareBytes compares the content value against the golden bytes and fails the test if they differ
CompareContent compares the content value against the golden file and fails the test if they differ
CompareYAML compares a file "x" against a golden file "x.golden"
ReadFile reads the content of the given file or fails the test if an error is encountered.
ReadGoldenFile reads the content of the golden file and fails the test if an error is encountered
Refresh controls whether to update the golden artifacts instead. It is set using the environment variable REFRESH_GOLDEN.
RefreshGoldenFile updates the golden file with the given content
StripVersion strips the version fields of a YAML content.
Package util imports 9 packages (graph). Updated 2020-11-12. Refresh now. Tools for package owners.