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

Function InDeltaMapValues

require/require.go:894–902  ·  require/require.go::InDeltaMapValues

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

892
893// InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
894func InDeltaMapValues(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
895 if h, ok := t.(tHelper); ok {
896 h.Helper()
897 }
898 if assert.InDeltaMapValues(t, expected, actual, delta, msgAndArgs...) {
899 return
900 }
901 t.FailNow()
902}
903
904// InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
905func 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