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

Function InDeltaSlice

require/require.go:916–924  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

914
915// InDeltaSlice is the same as InDelta, except it compares two slices.
916func InDeltaSlice(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
917 if h, ok := t.(tHelper); ok {
918 h.Helper()
919 }
920 if assert.InDeltaSlice(t, expected, actual, delta, msgAndArgs...) {
921 return
922 }
923 t.FailNow()
924}
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{}) {

Callers 1

InDeltaSliceMethod · 0.70

Calls 3

InDeltaSliceFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected