package
Version:
v0.0.0-...-ea27d6f
Opens a new window with list of versions in this module.
Published: Mar 19, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package test contains utilities used by plz_go_test.
-
func PleaseGoTest(goTool, dir, testPackage, output string, sources, exclude []string, ...)
-
func WriteTestMain(testPackage string, sources []string, output string, coverage bool, ...) error
-
type CoverVar
func PleaseGoTest(goTool, dir, testPackage, output string, sources, exclude []string, isBenchmark, external bool)
PleaseGoTest will generate the test main for the provided sources
WriteTestMain templates a test main file from the given sources to the given output file.
type CoverVar struct {
Dir, ImportPath, ImportName, Var, File string
}
A CoverVar is just a combination of package path and variable name
for one of the templated-in coverage variables.
FindCoverVars searches the given directory recursively to find all Go files with coverage variables.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.