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

Method InEpsilonf

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

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 {
769 if h, ok := a.t.(tHelper); ok {
770 h.Helper()
771 }
772 return InEpsilonf(a.t, expected, actual, epsilon, msg, args...)
773}
774
775// IsDecreasing asserts that the collection is decreasing
776//

Callers

nothing calls this directly

Calls 2

InEpsilonfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected