Documentation ¶
Overview ¶
Package opt provides common go-cmp.Options for use with assert.DeepEqual.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationWithThreshold ¶
DurationWithThreshold returns a gocmp.Comparer for comparing time.Duration. The Comparer returns true if the difference between the two Duration values is within the threshold and neither value is zero.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.