Plus to the standard testing
package
// *WriterTB implements the testing.TB interface.
// An io.Writer can be specified as the destination of logging.
// This type is especially useful for writing testcases of tools for testing.
type WriterTB struct {
io.Writer
Suffix string
...
}
BSD license