Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoFix ¶
func DoFix() bool
DoFix gets a value indicating whether the xxx_test.go files must not only perform the tests, but also update the files these tests depend on. The value returned by this function is declared via the command line:
go test <...> -ldflags="-X 'github.com/umk/go-testutil.fix=fix'"
When the `fix` variable value equals to "fix", the function returns `true`, and otherwise `false`. Use a makefile or a script to run the test command with this parameter for better experience.
After the files have been updated, check with a source control by diff'ing with the current version, that your xxx_test.go have made the proper changes to the files, and run the test again without the fix flag specified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.