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
Click to show internal directories.
Click to hide internal directories.