test

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package test defines custom test helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasTypeLabel added in v0.18.0

func HasTypeLabel(t *testing.T, builder func(crd cosmosv1.CosmosFullNode) []map[string]string)

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) Debug added in v0.13.0

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

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