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

Function InDeltaSlicef

require/require.go:927–935  ·  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

925
926// InDeltaSlicef is the same as InDelta, except it compares two slices.
927func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
928 if h, ok := t.(tHelper); ok {
929 h.Helper()
930 }
931 if assert.InDeltaSlicef(t, expected, actual, delta, msg, args...) {
932 return
933 }
934 t.FailNow()
935}
936
937// InDeltaf asserts that the two numerals are within delta of each other.
938//

Callers 1

InDeltaSlicefMethod · 0.70

Calls 3

InDeltaSlicefFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected