ElementsMatch should shows exact difference (per line)
Author: vitaly-zdanevichCreated Apr 17, 2023Updated Sep 9, 2026
Labelsenhancementpkg-assert
My structures are relatively big, so now I see something like this, wasting time trying to find the difference:

Expected something like this, that I got by creating files a, b and doing git diff --no-index a b

Source: stretchr/testify