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

Function InDeltaSlicef

assert/assertion_format.go:377–382  ·  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

375
376// InDeltaSlicef is the same as InDelta, except it compares two slices.
377func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool {
378 if h, ok := t.(tHelper); ok {
379 h.Helper()
380 }
381 return InDeltaSlice(t, expected, actual, delta, append([]interface{}{msg}, args...)...)
382}
383
384// InEpsilonf asserts that expected and actual have a relative error less than epsilon
385func 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.65

Tested by

no test coverage detected