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

Function InDeltaMapValuesf

require/require.go:905–913  ·  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.

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

Source from the content-addressed store, hash-verified

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{}) {
906 if h, ok := t.(tHelper); ok {
907 h.Helper()
908 }
909 if assert.InDeltaMapValuesf(t, expected, actual, delta, msg, args...) {
910 return
911 }
912 t.FailNow()
913}
914
915// InDeltaSlice is the same as InDelta, except it compares two slices.
916func InDeltaSlice(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {

Callers 1

InDeltaMapValuesfMethod · 0.70

Calls 3

InDeltaMapValuesfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected