testify icon indicating copy to clipboard operation
testify copied to clipboard

assert: add position and pass msg to underlying func in InDeltaMapValues, InDeltaMapValues, and InEpsilonSlice

Open hendrywiranto opened this issue 2 years ago • 0 comments

Summary

Add position and pass msg to underlying func in InDeltaSlice, InDeltaMapValues, and InEpsilonSlice

Changes

  • Add position information into the msgAndArgs slice in those 3 funcs
    • at index: for slice index
    • at 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
image

After
image

InDeltaMapValues

Before
image

After
image

InEpsilonSlice

Before
image

After
image

hendrywiranto avatar Dec 03 '23 13:12 hendrywiranto