| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2025-08-27 | 810 Bytes | |
| v1.11.1 source code.tar.gz | 2025-08-27 | 116.9 kB | |
| v1.11.1 source code.zip | 2025-08-27 | 137.9 kB | |
| Totals: 3 Items | 255.6 kB | 1 | |
This release fixes [#1785] introduced in v1.11.0 where expected argument values implementing the stringer interface (String() string) with a method which mutates their value, when passed to mock.Mock.On (m.On("Method", <expected>).Return()) or actual argument values passed to mock.Mock.Called may no longer match one another where they previously did match. The behaviour prior to v1.11.0 where the stringer is always called is restored. Future testify releases may not call the stringer method at all in this case.
What's Changed
- Backport [#1786] to release/1.11: mock: revert to pre-v1.11.0 argument matching behavior for mutating stringers by @brackendawson in https://github.com/stretchr/testify/pull/1788
Full Changelog: https://github.com/stretchr/testify/compare/v1.11.0...v1.11.1