deepequal

package
v0.0.0-...-03d6fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCopy

func AssertCopy(t testutils.TestingT, a, b interface{})

AssertCopy is AssertDeepEqual but also checks that none of the direct fields have a zero value and none of the direct fields point to the same object. This catches regressions where a new field is added without adding that field to the Copy method. Arguments must be structs.

func AssertDeepEqual

func AssertDeepEqual(t testutils.TestingT, expected, actual interface{})

AssertDeepEqual fails the test if the two objects do not pass reflect.DeepEqual.

func DeepEqual

func DeepEqual(x, y interface{}) bool

DeepEqual has been modified to ignore the monotonic portion of time.Time objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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