testtarget

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package testtarget is a log driver that sends log messages to a go test. Specifically, log messages are sent to `logging`.T.Log.

This driver can be configured to automatically fail a test if an error message is produced. In this case, the log message is sent to `logging`.T.Error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForTest

func ForTest(t *testing.T, failOnError bool) log.Driver

Types

This section is empty.

Jump to

Keyboard shortcuts

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