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

Method InEpsilonSlice

assert/assertion_forward.go:766–771  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

764
765// InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
766func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool {
767 if h, ok := a.t.(tHelper); ok {
768 h.Helper()
769 }
770 return InEpsilonSlice(a.t, expected, actual, epsilon, msgAndArgs...)
771}
772
773// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
774func (a *Assertions) InEpsilonSlicef(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool {

Callers

nothing calls this directly

Calls 2

InEpsilonSliceFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected