initoption

package
v1.31.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitOption

type InitOption func(c *internal.InitConfig)

InitOption is a functional option for Init and InitCtx.

func BufferLogs added in v1.31.0

func BufferLogs(enabled bool) InitOption

BufferLogs controls whether log entries are captured in memory in addition to being printed. Off by default. Unit tests that want to verify that log entries are emitted as expected can turn this on and then retrieve the captured log through the Underlier LogSink interface.

func PerTestOutput

func PerTestOutput(enabled bool) InitOption

PerTestOutput controls whether a per-test logger gets set up by Init. Has no effect in InitCtx.

Jump to

Keyboard shortcuts

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