Documentation
¶
Overview ¶
Package exectest builds the pdfconcat executable for tests that run it as a child process, and lets the coverage gate (tools/qualitygate coverage) see what those child processes execute.
When the environment variable PDFCONCAT_COVERDIR names a directory, Build compiles with `go build -cover` (instrumenting the packages listed in PDFCONCAT_COVERPKG, default every package of the module) and Command points the child's GOCOVERDIR at that directory. Otherwise the executable is a plain build and nothing changes.
Index ¶
Constants ¶
const ( // EnvCoverDir is the directory that receives the child processes' coverage data. EnvCoverDir = "PDFCONCAT_COVERDIR" // EnvCoverPkg is the comma-separated list of packages the executable is instrumented for. EnvCoverPkg = "PDFCONCAT_COVERPKG" )
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build compiles the main package pkg (for example "./cmd/pdfconcat", relative to the module root) once per test process and returns the executable's path.
Types ¶
This section is empty.