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

Method InEpsilonSlicef

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

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

Callers

nothing calls this directly

Calls 2

InEpsilonSlicefFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected