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

Function InEpsilonSlice

require/require.go:962–970  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

960
961// InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
962func InEpsilonSlice(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
963 if h, ok := t.(tHelper); ok {
964 h.Helper()
965 }
966 if assert.InEpsilonSlice(t, expected, actual, epsilon, msgAndArgs...) {
967 return
968 }
969 t.FailNow()
970}
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{}) {

Callers 1

InEpsilonSliceMethod · 0.70

Calls 3

InEpsilonSliceFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected