testutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareWithGolden

func CompareWithGolden(t *testing.T, testdataDir string, updateFlag bool, gotBytes []byte)

CompareWithGolden compares generated content with a golden file. It handles goimports formatting, diffing, and updating the golden file. testdataDir should be the path to the directory containing the golden files. updateFlag should be the value of the -update command-line flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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