checker

package
v1.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeepEquals check.Checker = &diffChecker{
		&check.CheckerInfo{Name: "Diff", Params: defaultParams},
	}
)

DeepEquals is a GoCheck checker that does a diff between two objects and pretty-prints any difference between the two. It can act as a substitute for DeepEquals.

Functions

func DeepEqual

func DeepEqual(params ...interface{}) (bool, string)

DeepEqual tests whether two parameters are deeply equal, and returns true if they are. If the objects are not deeply equal, then the second return value includes a json representation of the difference between the parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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