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

Method InEpsilonSlicef

assert/assertion_forward.go:774–779  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

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 {
775 if h, ok := a.t.(tHelper); ok {
776 h.Helper()
777 }
778 return InEpsilonSlicef(a.t, expected, actual, epsilon, msg, args...)
779}
780
781// InEpsilonf asserts that expected and actual have a relative error less than epsilon
782func (a *Assertions) InEpsilonf(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool {

Callers

nothing calls this directly

Calls 2

InEpsilonSlicefFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected