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

Method InEpsilonSlice

require/require_forward.go:767–772  ·  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

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

Callers

nothing calls this directly

Calls 2

InEpsilonSliceFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected