test

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package test defines custom test helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireValidMetadata

func RequireValidMetadata(t *testing.T, obj client.Object)

RequireValidMetadata asserts valid metadata properties such as name and label length.

Types

type NopReporter added in v0.9.2

type NopReporter struct{}

NopReporter is a no-op kube.Reporter.

func (NopReporter) Error added in v0.9.2

func (n NopReporter) Error(err error, msg string, keysAndValues ...interface{})

func (NopReporter) Info added in v0.9.2

func (n NopReporter) Info(msg string, keysAndValues ...interface{})

func (NopReporter) RecordError added in v0.9.2

func (n NopReporter) RecordError(reason string, err error)

func (NopReporter) RecordInfo added in v0.9.2

func (n NopReporter) RecordInfo(reason, msg string)

Jump to

Keyboard shortcuts

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