Documentation
¶
Index ¶
- func GetColorDefault() *color.Color
- func GetColorError() *color.Color
- func GetColorHighlight() *color.Color
- func GetColorInfo() *color.Color
- func GetColorSecondary() *color.Color
- func GetColorSecondaryHighlight() *color.Color
- func GetColorSuccess() *color.Color
- func GetColorWarning() *color.Color
- func MustResetCapturing()
- func MustStartCapturing(setupFunc SetupFunc, additionalSetupFuncs ...SetupFunc)
- func MustStopCapturing() (string, string)
- type RestoreFunc
- type SetupFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetColorSecondaryHighlight ¶
GetColorSecondaryHighlight returns a color.
func MustResetCapturing ¶
func MustResetCapturing()
MustResetCapturing ensures the capturing is stopped (e.g. after a failing test).
func MustStartCapturing ¶
MustStartCapturing sets up the streams and starts capturing.
func MustStopCapturing ¶
MustStopCapturing restores the original streams and returns the captured stdout/stderr.
Types ¶
type RestoreFunc ¶
type RestoreFunc func()
RestoreFunc describe a function that restores the original streams.
func SetupStandardStreams ¶
func SetupStandardStreams(outW *os.File, errW *os.File) RestoreFunc
SetupStandardStreams is a SetupFunc that configures the stdout/stderr streams.
func SetupTableStreams ¶
func SetupTableStreams(outW *os.File, _ *os.File) RestoreFunc
SetupTableStreams is a SetupFunc that configures the table streams.
type SetupFunc ¶
type SetupFunc func(outW *os.File, errW *os.File) RestoreFunc
SetupFunc describes a function that replaces streams with the ones for capturing.
func GetSetupColorStreams ¶
GetSetupColorStreams returns a SetupFunc that configures the color streams.
Click to show internal directories.
Click to hide internal directories.