MCPcopy
hub / github.com/expr-lang/expr / InDeltaSlicef

Function InDeltaSlicef

internal/testify/assert/assertion_format.go:370–375  ·  view source on GitHub ↗

InDeltaSlicef is the same as InDelta, except it compares two slices.

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

Source from the content-addressed store, hash-verified

368
369// InDeltaSlicef is the same as InDelta, except it compares two slices.
370func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool {
371 if h, ok := t.(tHelper); ok {
372 h.Helper()
373 }
374 return InDeltaSlice(t, expected, actual, delta, append([]interface{}{msg}, args...)...)
375}
376
377// InEpsilonf asserts that expected and actual have a relative error less than epsilon
378func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool {

Callers 2

InDeltaSlicefFunction · 0.92
InDeltaSlicefMethod · 0.70

Calls 2

InDeltaSliceFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…