test

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertStructFields

func AssertStructFields(t *testing.T, expectations map[string]interface{}, actual interface{}) bool

func CheckStructFields

func CheckStructFields(expectations map[string]interface{}, actual interface{}) (field.ErrorList, error)

CheckStructFields asserts that the struct fields referenced by the supplied expectation path, have a value equal to the expectation value.

func ExampleEtcdBackupSchedule added in v0.2.0

func ExampleEtcdBackupSchedule(namespace string) *etcdv1alpha1.EtcdBackupSchedule

func ExampleEtcdCluster

func ExampleEtcdCluster(namespace string) *etcdv1alpha1.EtcdCluster

ExampleEtcdCluster returns a valid example for testing purposes.

func ExampleEtcdPeer

func ExampleEtcdPeer(namespace string) *etcdv1alpha1.EtcdPeer

ExampleEtcdPeer returns a valid example for testing purposes.

Types

type TestLogger added in v0.2.0

type TestLogger struct {
	T *testing.T
	// contains filtered or unexported fields
}

TestLogger is a logr.Logger that prints through a testing.T object.

func (TestLogger) Enabled added in v0.2.0

func (_ TestLogger) Enabled() bool

func (TestLogger) Error added in v0.2.0

func (log TestLogger) Error(err error, msg string, args ...interface{})

func (TestLogger) Info added in v0.2.0

func (log TestLogger) Info(msg string, args ...interface{})

func (TestLogger) V added in v0.2.0

func (log TestLogger) V(v int) logr.InfoLogger

func (TestLogger) WithName added in v0.2.0

func (log TestLogger) WithName(name string) logr.Logger

func (TestLogger) WithValues added in v0.2.0

func (log TestLogger) WithValues(values ...interface{}) logr.Logger

Directories

Path Synopsis
Package e2e holds an end-to-end test framework for testing the operator.
Package e2e holds an end-to-end test framework for testing the operator.

Jump to

Keyboard shortcuts

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