tests

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SampleText_32 = "Mocking Bird! Just A Sample Text."

Variables

This section is empty.

Functions

func CreateTempFile

func CreateTempFile(t *testing.T, content string) (*os.File, error)

createTempFile creates a temporary file for testing purposes and writes the given content to it.

func ReplaceStdin

func ReplaceStdin(t *testing.T) (*os.File, *os.File)

replaceStdin replaces os.Stdin with a pipe for testing purposes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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