Documentation ¶
Index ¶
Constants ¶
View Source
const ( FloatPrecision OptName = "FloatPrecision" MaxDiff OptName = "MaxDiff" MaxDepth OptName = "MaxDepth" LogErrors OptName = "LogErrors" LookupUnexported OptName = "LookupUnexported" IncludeNilSlices OptName = "IncludeNilSlices" DefaultFloatPrecision int = 10 DefaultMaxDiff int = 10 )
Variables ¶
View Source
var ( DefaultOpts = PrintOpts{ SkipPackage: true, SkipPrivate: true, SkipZero: true, Excludes: []*regexp.Regexp{regexp.MustCompile(`^(XXX_.*)$`)}, Separator: " ", } )
Functions ¶
func Equal ¶
func Equal(actual, expected interface{}, opts ...CompareOptions) []string
func MapReusedPointers ¶
Types ¶
type CompareOptions ¶
type CompareOptions struct { Name OptName Value interface{} }
Click to show internal directories.
Click to hide internal directories.