testing

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDeepEqual

func AssertDeepEqual(t *testing.T, actual, expected interface{})

func AssertEqual

func AssertEqual(t *testing.T, actual, expected interface{})

func AssertNoError

func AssertNoError(t *testing.T, err error)

func AssertNotEqual

func AssertNotEqual(t *testing.T, actual, expected interface{})

func MakeDaemonSet

func MakeDaemonSet(name string, podSpec corev1.PodSpec) *appsv1.DaemonSet

func MakeDeployment

func MakeDeployment(name string, podSpec corev1.PodSpec) *appsv1.Deployment

func MakeUnstructured

func MakeUnstructured(t *testing.T, obj interface{}) unstructured.Unstructured

func PrintWantGot added in v0.60.0

func PrintWantGot(diff string) string

PrintWantGot takes a diff string generated by cmp.Diff and returns it in a consistent format for reuse across all of our tests. This func assumes that the order of arguments passed to cmp.Diff was (want, got) or, in other words, the expectedResult then the actualResult.

Types

This section is empty.

Jump to

Keyboard shortcuts

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