diff

package
v0.28.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 567

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreUnset added in v0.17.0

func IgnoreUnset() cmp.Option

IgnoreUnset is an option that ignores fields that are unset on the right hand side of a comparison. This is useful in testing to assert that an object is a derivative.

func ObjectDiff

func ObjectDiff(a, b interface{}) string

ObjectDiff prints the diff of two go objects and fails if the objects contain unhandled unexported fields. DEPRECATED: use github.com/google/go-cmp/cmp.Diff

func ObjectGoPrintDiff

func ObjectGoPrintDiff(a, b interface{}) string

ObjectGoPrintDiff prints the diff of two go objects and fails if the objects contain unhandled unexported fields. DEPRECATED: use github.com/google/go-cmp/cmp.Diff

func ObjectGoPrintSideBySide

func ObjectGoPrintSideBySide(a, b interface{}) string

ObjectGoPrintSideBySide prints a and b as textual dumps side by side, enabling easy visual scanning for mismatches.

func ObjectReflectDiff

func ObjectReflectDiff(a, b interface{}) string

ObjectReflectDiff prints the diff of two go objects and fails if the objects contain unhandled unexported fields. DEPRECATED: use github.com/google/go-cmp/cmp.Diff

func StringDiff

func StringDiff(a, b string) string

StringDiff diffs a and b and returns a human readable diff. DEPRECATED: use github.com/google/go-cmp/cmp.Diff

Types

This section is empty.

Jump to

Keyboard shortcuts

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