Documentation ¶
Overview ¶
Package mock provide a mocking for standard output and standard error.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetStderr ¶
func ResetStderr(truncate bool)
ResetStderr reset mocked standard error offset back to 0. If truncated is true, it also reset the size to 0.
func ResetStdin ¶
func ResetStdin(truncate bool)
ResetStdin reset mocked standard input offset back to 0. If truncated is true, it also reset the size to 0.
func ResetStdout ¶
func ResetStdout(truncate bool)
ResetStdout reset mocked standard output offset back to 0. If truncated is true, it also reset the size to 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.