Documentation ¶
Index ¶
- func AssertDeepEqual(t *testing.T, actual, expected interface{})
- func AssertEqual(t *testing.T, actual, expected interface{})
- func AssertNoError(t *testing.T, err error)
- func AssertNotEqual(t *testing.T, actual, expected interface{})
- func MakeDaemonSet(name string, podSpec corev1.PodSpec) *appsv1.DaemonSet
- func MakeDeployment(name string, podSpec corev1.PodSpec) *appsv1.Deployment
- func MakeUnstructured(t *testing.T, obj interface{}) unstructured.Unstructured
- func PrintWantGot(diff string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDeepEqual ¶
func AssertEqual ¶
func AssertNoError ¶
func AssertNotEqual ¶
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
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.
Click to show internal directories.
Click to hide internal directories.