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

Function InEpsilonSlicef

require/require.go:973–981  ·  view source on GitHub ↗

InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.

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

Source from the content-addressed store, hash-verified

971
972// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
973func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
974 if h, ok := t.(tHelper); ok {
975 h.Helper()
976 }
977 if assert.InEpsilonSlicef(t, expected, actual, epsilon, msg, args...) {
978 return
979 }
980 t.FailNow()
981}
982
983// InEpsilonf asserts that expected and actual have a relative error less than epsilon
984func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {

Callers 1

InEpsilonSlicefMethod · 0.70

Calls 3

InEpsilonSlicefFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected