MCPcopy Index your code
hub / github.com/expr-lang/expr / InEpsilon

Method InEpsilon

internal/testify/require/require_forward.go:746–751  ·  view source on GitHub ↗

InEpsilon asserts that expected and actual have a relative error less than epsilon

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

Source from the content-addressed store, hash-verified

744
745// InEpsilon asserts that expected and actual have a relative error less than epsilon
746func (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
747 if h, ok := a.t.(tHelper); ok {
748 h.Helper()
749 }
750 InEpsilon(a.t, expected, actual, epsilon, msgAndArgs...)
751}
752
753// InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
754func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {

Callers

nothing calls this directly

Calls 2

InEpsilonFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected