testify
testify copied to clipboard
Improved error reporting of unexpected method calls
Fixes #373. Panic now tells us the method was called with [] instead of an obscure index out of range error.
Any chance this will still be merged? I just spent a while trying to debug an IndexOutOfRange
panic that happened because I forgot one argument in my On
call.