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

Function InEpsilonSlice

internal/testify/require/require.go:949–957  ·  view source on GitHub ↗

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

(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

947
948// InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
949func InEpsilonSlice(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
950 if h, ok := t.(tHelper); ok {
951 h.Helper()
952 }
953 if assert.InEpsilonSlice(t, expected, actual, epsilon, msgAndArgs...) {
954 return
955 }
956 t.FailNow()
957}
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{}) {

Callers 1

InEpsilonSliceMethod · 0.70

Calls 3

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