fake

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 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 SwappedFile

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

SwappedFile is a temporary swapped file.

func UseFakeStderr

func UseFakeStderr(t *testing.T) SwappedFile

UseFakeStderr swaps stderr with fake one.

func UseFakeStdout

func UseFakeStdout(t *testing.T) SwappedFile

UseFakeStdout swaps stdout with fake one.

func (SwappedFile) Release

func (f SwappedFile) Release()

Release brings back the original file.

func (SwappedFile) String

func (f SwappedFile) String(t *testing.T) string

String returns the entire contents of current file.

Jump to

Keyboard shortcuts

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