sztestlog

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

README

Package sztestlog

package sztestlog

Package sztestlog provides convenience functions to return a sztest.Chk object while setting the szlog package to the desired settings based on passed arguments for testing. If no Arguments are passed then both verbose and log levels are set to their maximums.

Dedication

This project is dedicated to Reem. Your brilliance, courage, and quiet strength continue to inspire me. Every line is written in gratitude for the light and hope you brought into my life.

NOTE: Documentation reviewed and polished with the assistance of ChatGPT from OpenAI.

Documentation

Overview

Package sztestlog provides convenience functions to return a sztest.Chk object while setting the szlog package to the desired settings based on passed arguments for testing. If no Arguments are passed then both verbose and log levels are set to their maximums.

## Dedication

This project is dedicated to Reem. Your brilliance, courage, and quiet strength continue to inspire me. Every line is written in gratitude for the light and hope you brought into my life.

NOTE: Documentation reviewed and polished with the assistance of ChatGPT from OpenAI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureLog

func CaptureLog(t *testing.T, args ...string) *sztest.Chk

CaptureLog returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureLogAndStderr

func CaptureLogAndStderr(t *testing.T, args ...string) *sztest.Chk

CaptureLogAndStderr returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureLogAndStderrAndStdout

func CaptureLogAndStderrAndStdout(
	t *testing.T, args ...string,
) *sztest.Chk

CaptureLogAndStderrAndStdout returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureLogAndStdout

func CaptureLogAndStdout(t *testing.T, args ...string) *sztest.Chk

CaptureLogAndStdout returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureLogWithStderr

func CaptureLogWithStderr(t *testing.T, args ...string) *sztest.Chk

CaptureLogWithStderr returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureLogWithStderrAndStdout

func CaptureLogWithStderrAndStdout(
	t *testing.T, args ...string,
) *sztest.Chk

CaptureLogWithStderrAndStdout returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureNothing

func CaptureNothing(t *testing.T, args ...string) *sztest.Chk

CaptureNothing returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureStderr

func CaptureStderr(t *testing.T, args ...string) *sztest.Chk

CaptureStderr returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureStderrAndStdout

func CaptureStderrAndStdout(t *testing.T, args ...string) *sztest.Chk

CaptureStderrAndStdout returns a new *sztest.Chk reference and setting the logging level in a single call.

func CaptureStdout

func CaptureStdout(t *testing.T, args ...string) *sztest.Chk

CaptureStdout returns a new *sztest.Chk reference and setting the logging level in a single call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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