Documentation ¶
Overview ¶
Package test contains test related helpers to be used in mage targets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTestArgs = []string{
"test",
"-mod=vendor",
"-cover",
"-race",
}
DefaultTestArgs used when running tests.
Functions ¶
func CoverDefault ¶
func CoverDefault() error
CoverDefault runs Go test and produce full code coverage result and uses default build tags.
func Run ¶
Run Go tests with cover and race flags enabled. Accepts build tags, extra args and a specific pkg.
func RunDefault ¶
func RunDefault() error
RunDefault Go tests with cover, race flags enabled, with default build tags and default pkg.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.