Package proftest provides some utility routines to test other packages related to profiles.
Diff compares two byte arrays using the diff tool to highlight the differences. It is meant for testing purposes to display the differences between expected and actual output.
EncodeJSON encodes a value into a byte array. This is intended for testing purposes.
TestUI implements the plugin.UI interface, triggering test failures if more than Ignore errors not matching AllowRx are printed. Also tracks the number of times the error matches AllowRx in NumAllowRxMatches.
IsTerminal indicates if the UI is an interactive terminal.
Print messages are discarded by the test UI.
PrintErr messages may trigger an error failure. A fixed number of error messages are permitted when appropriate.
ReadLine returns no input, as no input is expected during testing.
SetAutoComplete is not supported by the test UI.
WantBrowser indicates whether a browser should be opened with the -http option.