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

Function InEpsilonf

internal/testify/assert/assertion_format.go:378–383  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

376
377// InEpsilonf asserts that expected and actual have a relative error less than epsilon
378func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool {
379 if h, ok := t.(tHelper); ok {
380 h.Helper()
381 }
382 return InEpsilon(t, expected, actual, epsilon, append([]interface{}{msg}, args...)...)
383}
384
385// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
386func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool {

Callers 2

InEpsilonfFunction · 0.92
InEpsilonfMethod · 0.70

Calls 2

InEpsilonFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…