Documentation ¶
Overview ¶
Package tracetest provides utilities for errtrace to test error trace output conveniently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustClean ¶
MustClean makes traces more deterministic for tests by:
- replacing the environment-specific path to errtrace with the fixed path /path/to/errtrace
- replacing line numbers with the lowest values that maintain relative ordering within the file
Note that lines numbers are replaced with increasing values starting at 1, with earlier positions in the file getting lower numbers. The relative ordering of lines within a file is maintained.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.