Skip to content

go-pkgz/testutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testutils Build Status Go Report Card Coverage Status

Package testutils provides useful test helpers.

Details

  • CaptureStdout, CaptureSterr and CaptureStdoutAndStderr: capture stdout, stderr or both for testing purposes. All capture functions are not thread-safe if used in parallel tests, and usually it is better to pass a custom io.Writer to the function under test instead.

Install and update

go get -u github.com/go-pkgz/testutils

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages