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

Method InDeltaSlice

assert/assertion_forward.go:732–737  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

730
731// InDeltaSlice is the same as InDelta, except it compares two slices.
732func (a *Assertions) InDeltaSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {
733 if h, ok := a.t.(tHelper); ok {
734 h.Helper()
735 }
736 return InDeltaSlice(a.t, expected, actual, delta, msgAndArgs...)
737}
738
739// InDeltaSlicef is the same as InDelta, except it compares two slices.
740func (a *Assertions) InDeltaSlicef(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool {

Callers

nothing calls this directly

Calls 2

InDeltaSliceFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected