Documentation
¶
Overview ¶
Package gobuild builds a command of this module for a test that drives it as a process, so the coverage profile still credits what the process ran.
Index ¶
Constants ¶
const DirEnv = "OPENSYSML_GOCOVERDIR"
DirEnv names the directory instrumented binaries write their counters to. `make coverage` sets it and folds the counters into coverage.txt.
Variables ¶
This section is empty.
Functions ¶
func Args ¶
Args returns the `go build` arguments that write the package in the working directory to out; under `make coverage` the binary is instrumented and its counters collected.
func Dir ¶
func Dir() string
Dir returns the counter directory of the coverage run, or "" outside one.
func ReadBuildInfo ¶ added in v0.10.0
ReadBuildInfo reads the build information the toolchain embedded in a built binary, as debug.ReadBuildInfo reports it from inside: `go version -m` prints the same records, indented under a line naming the binary and its toolchain.
Types ¶
This section is empty.