Documentation
¶
Overview ¶
Package szTestLog provides a convenience package for linking Szerszam packages together:
- github.com/dancsecs/szTest - github.com/dancsecs/szLog
Index ¶
- func CaptureLog(t *testing.T) *szTest.Chk
- func CaptureLogAndStderr(t *testing.T) *szTest.Chk
- func CaptureLogAndStderrAndStdout(t *testing.T) *szTest.Chk
- func CaptureLogAndStdout(t *testing.T) *szTest.Chk
- func CaptureLogWithStderr(t *testing.T) *szTest.Chk
- func CaptureLogWithStderrAndStdout(t *testing.T) *szTest.Chk
- func CaptureNothing(t *testing.T) *szTest.Chk
- func CaptureStderr(t *testing.T) *szTest.Chk
- func CaptureStderrAndStdout(t *testing.T) *szTest.Chk
- func CaptureStdout(t *testing.T) *szTest.Chk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureLog ¶
CaptureLog returns a new szTest object with log.Setout() being captured for testing by the Log() method. Further the szLog package's state is stored and set to capture debug messages without line locations.
func CaptureLogAndStderr ¶
CaptureLogAndStderr returns a new szTest object with os.Stderr and log.Setout() being captured for testing by the Stderr() and Log() methods respectfully. Further the szLog package's state is stored and set to capture debug messages without line locations.
func CaptureLogAndStderrAndStdout ¶
CaptureLogAndStderrAndStdout returns a new szTest object with os.Stdout, os.Stderr and log.Setout() being captured for testing by the Stdout(), Stderr() and Log() methods respectfully. Further the szLog package's state is stored and set to capture debug messages without line locations.
func CaptureLogAndStdout ¶
CaptureLogAndStdout returns a new szTest object with os.Stdout and log.Setout() being captured for testing by the Stdout() and Log() methods respectfully. Further the szLog package's state is stored and set to capture debug messages without line locations.
func CaptureLogWithStderr ¶
CaptureLogWithStderr returns a new szTest object with os.Stderr and log.Setout() being captured in the same log for testing by either the Stderr() or Log() methods. Further the szLog package's state is stored and set to capture debug messages without line locations.
func CaptureLogWithStderrAndStdout ¶
CaptureLogWithStderrAndStdout returns a new szTest object with os.Stdout and os.Stderr with log.Setout() being captured in the same log for testing by the Stdout() and either the Stderr() or Log() methods respectuffly. Further the szLog package's state is stored and set to capture debug messages without line locations.
func CaptureNothing ¶
CaptureNothing returns a new szTest object without any logs or standard io being captured. Further the szLog package's state is stored and set to capture debug messages without line locations.
func CaptureStderr ¶
CaptureStderr returns a new szTest object with os.Stderr being captured for testing by the Stderr() method. Further the szLog package's state is stored and set to capture debug messages without line locations.
func CaptureStderrAndStdout ¶
CaptureStderrAndStdout returns a new szTest object with os.Stdout and log.Seterr() being captured for testing by the Stdout() and Stderr() methods respectfully. Further the szLog package's state is stored and set to capture debug messages without line locations.
Types ¶
This section is empty.