Documentation
¶
Overview ¶
Package testutil holds helpers shared by tests in several packages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountPackageExtractionDirs ¶
CountPackageExtractionDirs counts package extraction directories in the system temp directory, so a test can check that a scan removed the one it created
func DynamicSystemBinary ¶
DynamicSystemBinary returns a dynamically linked system binary, which the scratch sandbox image cannot run because it has no ELF interpreter, or skips the test when the host has none
Types ¶
type CancelAfter ¶
CancelAfter reports cancellation once Err has been called more than Limit times, so a test can stop work part way without depending on a clock
func (*CancelAfter) Err ¶
func (c *CancelAfter) Err() error