test

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StdoutSwapper

type StdoutSwapper struct {
	// contains filtered or unexported fields
}

func SwapStdout

func SwapStdout(t *testing.T) StdoutSwapper

SwapStdout swaps stdout with fake one.

func (*StdoutSwapper) BringStdoutBack

func (s *StdoutSwapper) BringStdoutBack()

func (*StdoutSwapper) ReadOutput

func (s *StdoutSwapper) ReadOutput(t *testing.T) string

Jump to

Keyboard shortcuts

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