MCPcopy Create free account
hub / github.com/expr-lang/expr / InEpsilonSlicef

Method InEpsilonSlicef

internal/testify/assert/assertion_forward.go:760–765  ·  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

758
759// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
760func (a *Assertions) InEpsilonSlicef(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool {
761 if h, ok := a.t.(tHelper); ok {
762 h.Helper()
763 }
764 return InEpsilonSlicef(a.t, expected, actual, epsilon, msg, args...)
765}
766
767// InEpsilonf asserts that expected and actual have a relative error less than epsilon
768func (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.45

Tested by

no test coverage detected