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

Method InDeltaMapValues

assert/assertion_forward.go:716–721  ·  view source on GitHub ↗

InDeltaMapValues 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, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

714
715// InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
716func (a *Assertions) InDeltaMapValues(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {
717 if h, ok := a.t.(tHelper); ok {
718 h.Helper()
719 }
720 return InDeltaMapValues(a.t, expected, actual, delta, msgAndArgs...)
721}
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 {

Callers

nothing calls this directly

Calls 2

InDeltaMapValuesFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected