testing

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMapFromTestFile

func ConfigMapFromTestFile(t *testing.T, name string) *corev1.ConfigMap

ConfigMapFromTestFile creates a v1.ConfigMap from a YAML file It loads the YAML file from the testdata folder.

func SetupFakeContext added in v0.8.0

func SetupFakeContext(t *testing.T) (context.Context, []controller.Informer)

func TestLogger added in v0.8.0

func TestLogger(t *testing.T) *zap.SugaredLogger

func WithLogger added in v0.8.0

func WithLogger(ctx context.Context, t *testing.T) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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