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

Function InEpsilonf

require/require.go:984–992  ·  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

982
983// InEpsilonf asserts that expected and actual have a relative error less than epsilon
984func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
985 if h, ok := t.(tHelper); ok {
986 h.Helper()
987 }
988 if assert.InEpsilonf(t, expected, actual, epsilon, msg, args...) {
989 return
990 }
991 t.FailNow()
992}
993
994// IsDecreasing asserts that the collection is decreasing
995//

Callers 1

InEpsilonfMethod · 0.70

Calls 3

InEpsilonfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected