testify/mock
Christian Mesh 5d4510b137 Fix mock.go's Int Bool and Error shortcut methods
When using testify, I saw panic: assert: arguments: Error(0) failed because object wasn't correct type: {{ad6e7d77-1745-4761-6c4b-a79ab92a4a0f e6e975ef-3637-4047-436a-018ee9d2de52 %!s(int=17) <nil> <nil> %!s(bool=false) %!s(*string=<nil>) ...
when using the Error(index) function.

This commit simply changes to using %v for printing the unexpected structure in the Bool, Int, and Error shortcut methods.
2014-10-15 14:01:54 -04:00
..
doc.go Initial Commit 2012-10-16 11:14:23 -06:00
mock.go Fix mock.go's Int Bool and Error shortcut methods 2014-10-15 14:01:54 -04:00
mock_test.go Fix use of AnythingOfType with AssertCalled 2014-04-01 15:52:39 -07:00