Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireEqual ¶
RequireEqual is a helper function to assert the given output is the expected from the golden files, printing its diff in case it is not.
Golden files contain the raw expected output of your tests, which can contain control codes and escape sequences. When comparing the output of your tests, RequireEqual will escape the control codes and sequences before comparing the output with the golden files.
You can update the golden files by running your tests with the -update flag.
func RequireEqualEscape
deprecated
RequireEqualEscape is a helper function to assert the given output is the expected from the golden files, printing its diff in case it is not.
Deprecated: Use RequireEqual instead.
Types ¶
This section is empty.