MCPcopy
hub / github.com/stretchr/testify / InDeltaMapValuesf

Method InDeltaMapValuesf

assert/assertion_forward.go:724–729  ·  view source on GitHub ↗

InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.

(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

722
723// InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
724func (a *Assertions) InDeltaMapValuesf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool {
725 if h, ok := a.t.(tHelper); ok {
726 h.Helper()
727 }
728 return InDeltaMapValuesf(a.t, expected, actual, delta, msg, args...)
729}
730
731// InDeltaSlice is the same as InDelta, except it compares two slices.
732func (a *Assertions) InDeltaSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {

Callers

nothing calls this directly

Calls 2

InDeltaMapValuesfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected