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

Method InEpsilonf

assert/assertion_forward.go:782–787  ·  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

780
781// InEpsilonf asserts that expected and actual have a relative error less than epsilon
782func (a *Assertions) InEpsilonf(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool {
783 if h, ok := a.t.(tHelper); ok {
784 h.Helper()
785 }
786 return InEpsilonf(a.t, expected, actual, epsilon, msg, args...)
787}
788
789// IsDecreasing asserts that the collection is decreasing
790//

Callers

nothing calls this directly

Calls 2

InEpsilonfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected