Documentation
¶
Overview ¶
Package golden provides utilities for golden file testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Golden ¶
type Golden struct {
// contains filtered or unexported fields
}
Golden provides utilities for comparing test output with golden files.
func New ¶
New creates a new Golden instance for the given test and fixture name. The fixture name is used to organize golden files into subdirectories.
func (*Golden) Assert ¶
Assert compares the given output with the golden file. If the --update flag is set, it updates the golden file instead.
func (*Golden) AssertString ¶
AssertString is a convenience wrapper around Assert for string output.
Click to show internal directories.
Click to hide internal directories.