MCPcopy Create free account
hub / github.com/stretchr/testify / InDeltaMapValues

Function InDeltaMapValues

require/require.go:880–888  ·  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.

(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

878
879// InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
880func InDeltaMapValues(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
881 if h, ok := t.(tHelper); ok {
882 h.Helper()
883 }
884 if assert.InDeltaMapValues(t, expected, actual, delta, msgAndArgs...) {
885 return
886 }
887 t.FailNow()
888}
889
890// InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
891func InDeltaMapValuesf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {

Callers 1

InDeltaMapValuesMethod · 0.70

Calls 3

InDeltaMapValuesFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected