package initoption
import "k8s.io/kubernetes/test/utils/ktesting/initoption"
Index ¶
Types ¶
type InitOption ¶
type InitOption func(c *internal.InitConfig)
InitOption is a functional option for Init and InitCtx.
func BufferLogs ¶
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.
Source Files ¶
initoption.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.