tracetest

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

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

func MustClean(trace string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL