szTestLog

package module
v0.0.0-...-721d834 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

README

Package szTestLog

package szTestLog

Package szTestLog provides a convenience package for linking Szerszam packages together:

  • github.com/dancsecs/szTest
  • github.com/dancsecs/szLog

Documentation

Overview

Package szTestLog provides a convenience package for linking Szerszam packages together:

- github.com/dancsecs/szTest - github.com/dancsecs/szLog

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureLog

func CaptureLog(t *testing.T) *szTest.Chk

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

func CaptureLogAndStderr(t *testing.T) *szTest.Chk

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

func CaptureLogAndStderrAndStdout(t *testing.T) *szTest.Chk

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

func CaptureLogAndStdout(t *testing.T) *szTest.Chk

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

func CaptureLogWithStderr(t *testing.T) *szTest.Chk

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

func CaptureLogWithStderrAndStdout(t *testing.T) *szTest.Chk

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

func CaptureNothing(t *testing.T) *szTest.Chk

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

func CaptureStderr(t *testing.T) *szTest.Chk

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

func CaptureStderrAndStdout(t *testing.T) *szTest.Chk

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.

func CaptureStdout

func CaptureStdout(t *testing.T) *szTest.Chk

CaptureStdout returns a new szTest object with os.Stdout being captured for testing by the Stdout() method. Further the szLog package's state is stored and set to capture debug messages without line locations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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