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

Function InEpsilonSlicef

internal/testify/require/require.go:960–968  ·  view source on GitHub ↗

InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.

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

Source from the content-addressed store, hash-verified

958
959// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
960func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
961 if h, ok := t.(tHelper); ok {
962 h.Helper()
963 }
964 if assert.InEpsilonSlicef(t, expected, actual, epsilon, msg, args...) {
965 return
966 }
967 t.FailNow()
968}
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{}) {

Callers 1

InEpsilonSlicefMethod · 0.70

Calls 3

InEpsilonSlicefFunction · 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…