2 Commits

Author SHA1 Message Date
Olivier Mengué
580d807112 mock: add build tag 'testify_no_objx' to opt-out of objx
Add build tag testify_no_objx to allow to exclude method Mock.TestData()
for avoiding dependency on github.com/stretchr/objx.
2025-08-25 14:13:40 +02:00
Olivier Mengué
4dddc52361 mock: isolate objx-dependent code in their own source files
In order to ease maintenance of downstream forks of Testify that would
remove dependency on github.com/stretchr/objx we move all uses of that
module in isolated source files. A fork without that dependency could
just remove those files.
See https://github.com/stretchr/testify/issues/1752#issuecomment-2921545929

The use of objx is quite contained: it is only used in Mock.TestData().
Note that we can't just remove that method or change the return value because
that would be a breaking change.
2025-08-25 14:13:40 +02:00