go: Update module github.com/stretchr/testify to v1.11.1
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
github.com/stretchr/testify | require | minor |
v1.10.0 -> v1.11.1
|
⚠️ WarningSome dependencies could not be looked up. Check the Dependency Dashboard for more information.
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
stretchr/testify (github.com/stretchr/testify)
v1.11.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
v1.11.0
What's Changed
Functional Changes
v1.11.0 Includes a number of performance improvements.
- Call stack perf change for CallerInfo by @mikeauclair in https://github.com/stretchr/testify/pull/1614
- Lazily render mock diff output on successful match by @mikeauclair in https://github.com/stretchr/testify/pull/1615
- assert: check early in Eventually, EventuallyWithT, and Never by @cszczepaniak in https://github.com/stretchr/testify/pull/1427
- assert: add IsNotType by @bartventer in https://github.com/stretchr/testify/pull/1730
- assert.JSONEq: shortcut if same strings by @dolmen in https://github.com/stretchr/testify/pull/1754
- assert.YAMLEq: shortcut if same strings by @dolmen in https://github.com/stretchr/testify/pull/1755
- assert: faster and simpler isEmpty using reflect.Value.IsZero by @dolmen in https://github.com/stretchr/testify/pull/1761
- suite: faster methods filtering (internal refactor) by @dolmen in https://github.com/stretchr/testify/pull/1758
Fixes
- assert.ErrorAs: log target type by @craig65535 in https://github.com/stretchr/testify/pull/1345
- Fix failure message formatting for Positive and Negative asserts in https://github.com/stretchr/testify/pull/1062
- Improve ErrorIs message when error is nil but an error was expected by @tsioftas in https://github.com/stretchr/testify/pull/1681
- fix Subset/NotSubset when calling with mixed input types by @siliconbrain in https://github.com/stretchr/testify/pull/1729
- Improve ErrorAs failure message when error is nil by @ccoVeille in https://github.com/stretchr/testify/pull/1734
- mock.AssertNumberOfCalls: improve error msg by @3scalation in https://github.com/stretchr/testify/pull/1743
Documentation, Build & CI
- docs: Fix typo in README by @alexandear in https://github.com/stretchr/testify/pull/1688
- Replace deprecated io/ioutil with io and os by @alexandear in https://github.com/stretchr/testify/pull/1684
- Document consequences of calling t.FailNow() by @greg0ire in https://github.com/stretchr/testify/pull/1710
- chore: update docs for Unset #1621 by @techfg in https://github.com/stretchr/testify/pull/1709
- README: apply gofmt to examples by @alexandear in https://github.com/stretchr/testify/pull/1687
- refactor: use %q and %T to simplify fmt.Sprintf by @alexandear in https://github.com/stretchr/testify/pull/1674
- Propose Christophe Colombier (ccoVeille) as approver by @brackendawson in https://github.com/stretchr/testify/pull/1716
- Update documentation for the Error function in assert or require package by @architagr in https://github.com/stretchr/testify/pull/1675
- assert: remove deprecated build constraints by @alexandear in https://github.com/stretchr/testify/pull/1671
- assert: apply gofumpt to internal test suite by @ccoVeille in https://github.com/stretchr/testify/pull/1739
- CI: fix shebang in .ci.*.sh scripts by @dolmen in https://github.com/stretchr/testify/pull/1746
- assert,require: enable parallel testing on (almost) all top tests by @dolmen in https://github.com/stretchr/testify/pull/1747
- suite.Passed: add one more status test report by @Ararsa-Derese in https://github.com/stretchr/testify/pull/1706
- Add Helper() method in internal mocks and assert.CollectT by @dolmen in https://github.com/stretchr/testify/pull/1423
- assert.Same/NotSame: improve usage of Sprintf by @ccoVeille in https://github.com/stretchr/testify/pull/1742
- mock: enable parallel testing on internal testsuite by @dolmen in https://github.com/stretchr/testify/pull/1756
- suite: cleanup use of 'testing' internals at runtime by @dolmen in https://github.com/stretchr/testify/pull/1751
- assert: check test failure message for Empty and NotEmpty by @ccoVeille in https://github.com/stretchr/testify/pull/1745
- deps: fix dependency cycle with objx (again) by @dolmen in https://github.com/stretchr/testify/pull/1567
- assert.Empty: comprehensive doc of "Empty"-ness rules by @dolmen in https://github.com/stretchr/testify/pull/1753
- doc: improve godoc of top level 'testify' package by @dolmen in https://github.com/stretchr/testify/pull/1760
- assert.ErrorAs: simplify retrieving the type name by @ccoVeille in https://github.com/stretchr/testify/pull/1740
- assert.EqualValues: improve test coverage to 100% by @dolmen in https://github.com/stretchr/testify/pull/1763
- suite.Run: simplify running of Setup/TeardownSuite by @renzoarreaza in https://github.com/stretchr/testify/pull/1769
- assert.CallerInfo: micro optimization by using LastIndexByte by @dolmen in https://github.com/stretchr/testify/pull/1767
- assert.CallerInfo: micro cleanup by @dolmen in https://github.com/stretchr/testify/pull/1768
- assert: refactor TestFileExists and TestDirExists tests to enable parallel testing by @dolmen in https://github.com/stretchr/testify/pull/1766
- suite.Run: refactor handling of stats for improved readability by @dolmen in https://github.com/stretchr/testify/pull/1764
- tests: improve captureTestingT helper by @ccoVeille in https://github.com/stretchr/testify/pull/1741
- build(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/stretchr/testify/pull/1778
New Contributors
- @greg0ire made their first contribution in https://github.com/stretchr/testify/pull/1710
- @techfg made their first contribution in https://github.com/stretchr/testify/pull/1709
- @mikeauclair made their first contribution in https://github.com/stretchr/testify/pull/1614
- @cszczepaniak made their first contribution in https://github.com/stretchr/testify/pull/1427
- @architagr made their first contribution in https://github.com/stretchr/testify/pull/1675
- @tsioftas made their first contribution in https://github.com/stretchr/testify/pull/1681
- @siliconbrain made their first contribution in https://github.com/stretchr/testify/pull/1729
- @bartventer made their first contribution in https://github.com/stretchr/testify/pull/1730
- @Ararsa-Derese made their first contribution in https://github.com/stretchr/testify/pull/1706
- @renzoarreaza made their first contribution in https://github.com/stretchr/testify/pull/1769
- @3scalation made their first contribution in https://github.com/stretchr/testify/pull/1743
Full Changelog: https://github.com/stretchr/testify/compare/v1.10.0...v1.11.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.