ktesting

package
v1.27.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

Package ktesting is a wrapper around k8s.io/klog/v2/ktesting. It provides those (and only those) functions that test code in Kubernetes should use, plus better dumping of complex datatypes. It adds the klog command line flags and increases the default verbosity to 5.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestContext

func NewTestContext(tl ktesting.TL) (klog.Logger, context.Context)

NewTestContext is a wrapper around ktesting.NewTestContext with settings specific to Kubernetes.

func SetDefaultVerbosity

func SetDefaultVerbosity(v int)

SetDefaultVerbosity can be called during init to modify the default log verbosity of the program.

Types

This section is empty.

Jump to

Keyboard shortcuts

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