MCPcopy Create free account
hub / github.com/jmespath/go-jmespath / InEpsilonf

Function InEpsilonf

internal/testify/assert/assertion_format.go:297–302  ·  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

295
296// InEpsilonf asserts that expected and actual have a relative error less than epsilon
297func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool {
298 if h, ok := t.(tHelper); ok {
299 h.Helper()
300 }
301 return InEpsilon(t, expected, actual, epsilon, append([]interface{}{msg}, args...)...)
302}
303
304// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
305func 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.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…