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

Function InEpsilonf

internal/testify/require/require.go:971–979  ·  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

969
970// InEpsilonf asserts that expected and actual have a relative error less than epsilon
971func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
972 if h, ok := t.(tHelper); ok {
973 h.Helper()
974 }
975 if assert.InEpsilonf(t, expected, actual, epsilon, msg, args...) {
976 return
977 }
978 t.FailNow()
979}
980
981// IsDecreasing asserts that the collection is decreasing
982//

Callers 1

InEpsilonfMethod · 0.70

Calls 3

InEpsilonfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…