Documentation
¶
Overview ¶
package mytest provides testing utilities for long, repetitive, table driven tests.
Index ¶
Constants ¶
const ( // ANSI color codes for text color RED = "\x1b[31m" GREEN = "\x1b[32m" BLUE = "\x1b[34m" YELLOW = "\x1b[33m" CYAN = "\x1b[36m" RESET = "\x1b[0m" )
ANSI color codes for text color
const VERSION = "1.0.1"
Variables ¶
var DISPLAY_WINDOW = 160
max number of characters to display, before and after first discrepency detected. adjusting this value has no effect on stored files, only on displayed messages.
Functions ¶
func Verify ¶
Verify provided content against reference file. If no reference file found, create it. A .want extension and a _ prefix are added to the reference filename base name, and path is removed to force storage in local source folder. If content differs from existing reference file, create a xxx.got file for further review and fail the test.
func VerifyFile ¶
Apply Verify to the content of the specified file. Not suitable for large files, because file will be loaded entirely in memory.
Types ¶
This section is empty.