instestlogger

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogCase

func LogCase(target logcommon.TestingLogger, name string)

func NewTestLoggerWithErrorFilter

func NewTestLoggerWithErrorFilter(target logcommon.TestingLogger, filterFn logcommon.ErrorFilterFunc) log.Logger

func SetTestOutput

func SetTestOutput(target logcommon.TestingLogger)

func SetTestOutputWithCfg

func SetTestOutputWithCfg(target logcommon.TestingLogger, cfg configuration.Log)

func SetTestOutputWithErrorFilter

func SetTestOutputWithErrorFilter(target logcommon.TestingLogger, filterFn logcommon.ErrorFilterFunc)

func SetTestOutputWithIgnoreAllErrors

func SetTestOutputWithIgnoreAllErrors(target logcommon.TestingLogger)

deprecated

func SetTestOutputWithStub

func SetTestOutputWithStub() (teardownFn func(pass bool))

func TestContext

func TestContext(target logcommon.TestingLogger) context.Context

TestContext returns context with initialized log field "testname" equal t.Name() value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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