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

Method InEpsilonf

internal/testify/require/require_forward.go:770–775  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

768
769// InEpsilonf asserts that expected and actual have a relative error less than epsilon
770func (a *Assertions) InEpsilonf(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
771 if h, ok := a.t.(tHelper); ok {
772 h.Helper()
773 }
774 InEpsilonf(a.t, expected, actual, epsilon, msg, args...)
775}
776
777// IsDecreasing asserts that the collection is decreasing
778//

Callers

nothing calls this directly

Calls 2

InEpsilonfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected