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.
Click to show internal directories.
Click to hide internal directories.