testify
testify copied to clipboard
assert: add position and pass msg to underlying func in InDeltaMapValues, InDeltaMapValues, and InEpsilonSlice
Summary
Add position and pass msg to underlying func in InDeltaSlice, InDeltaMapValues, and InEpsilonSlice
Changes
- Add position information into the
msgAndArgsslice in those 3 funcsat index:for slice indexat key:for map key
Motivation
When using those 3 functions, users don't know which key/index of the map/slice that produces the error because currently it's not added into the msgAndArgs slice.
Example
InDeltaSlice
Before
After
InDeltaMapValues
Before
After
InEpsilonSlice
Before
After