Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(a any, b any, opts ...cmp.Option) error

Diff is a wrapper around "github.com/google/go-cmp/cmp".Diff to compare two objects, taking into account that metav1.Time fields need special handling. This helps to avoid challenges with serializing/deserializing time fields in tests. The return value is also converted from cmp.Diff's string output to an error type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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