terraform-ecommerce-microservices-on-gke
terraform-ecommerce-microservices-on-gke copied to clipboard
chore(deps): Update module github.com/stretchr/testify to v1.11.1
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| github.com/stretchr/testify | v1.9.0 -> v1.11.1 |
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 #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 #1614
- Lazily render mock diff output on successful match by @mikeauclair in #1615
- assert: check early in Eventually, EventuallyWithT, and Never by @cszczepaniak in #1427
- assert: add IsNotType by @bartventer in #1730
- assert.JSONEq: shortcut if same strings by @dolmen in #1754
- assert.YAMLEq: shortcut if same strings by @dolmen in #1755
- assert: faster and simpler isEmpty using reflect.Value.IsZero by @dolmen in #1761
- suite: faster methods filtering (internal refactor) by @dolmen in #1758
Fixes
- assert.ErrorAs: log target type by @craig65535 in #1345
- Fix failure message formatting for Positive and Negative asserts in #1062
- Improve ErrorIs message when error is nil but an error was expected by @tsioftas in #1681
- fix Subset/NotSubset when calling with mixed input types by @siliconbrain in #1729
- Improve ErrorAs failure message when error is nil by @ccoVeille in #1734
- mock.AssertNumberOfCalls: improve error msg by @3scalation in #1743
Documentation, Build & CI
- docs: Fix typo in README by @alexandear in #1688
- Replace deprecated io/ioutil with io and os by @alexandear in #1684
- Document consequences of calling t.FailNow() by @greg0ire in #1710
- chore: update docs for Unset #1621 by @techfg in #1709
- README: apply gofmt to examples by @alexandear in #1687
- refactor: use %q and %T to simplify fmt.Sprintf by @alexandear in #1674
- Propose Christophe Colombier (ccoVeille) as approver by @brackendawson in #1716
- Update documentation for the Error function in assert or require package by @architagr in #1675
- assert: remove deprecated build constraints by @alexandear in #1671
- assert: apply gofumpt to internal test suite by @ccoVeille in #1739
- CI: fix shebang in .ci.*.sh scripts by @dolmen in #1746
- assert,require: enable parallel testing on (almost) all top tests by @dolmen in #1747
- suite.Passed: add one more status test report by @Ararsa-Derese in #1706
- Add Helper() method in internal mocks and assert.CollectT by @dolmen in #1423
- assert.Same/NotSame: improve usage of Sprintf by @ccoVeille in #1742
- mock: enable parallel testing on internal testsuite by @dolmen in #1756
- suite: cleanup use of 'testing' internals at runtime by @dolmen in #1751
- assert: check test failure message for Empty and NotEmpty by @ccoVeille in #1745
- deps: fix dependency cycle with objx (again) by @dolmen in #1567
- assert.Empty: comprehensive doc of "Empty"-ness rules by @dolmen in #1753
- doc: improve godoc of top level 'testify' package by @dolmen in #1760
- assert.ErrorAs: simplify retrieving the type name by @ccoVeille in #1740
- assert.EqualValues: improve test coverage to 100% by @dolmen in #1763
- suite.Run: simplify running of Setup/TeardownSuite by @renzoarreaza in #1769
- assert.CallerInfo: micro optimization by using LastIndexByte by @dolmen in #1767
- assert.CallerInfo: micro cleanup by @dolmen in #1768
- assert: refactor TestFileExists and TestDirExists tests to enable parallel testing by @dolmen in #1766
- suite.Run: refactor handling of stats for improved readability by @dolmen in #1764
- tests: improve captureTestingT helper by @ccoVeille in #1741
- build(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #1778
New Contributors
- @greg0ire made their first contribution in #1710
- @techfg made their first contribution in #1709
- @mikeauclair made their first contribution in #1614
- @cszczepaniak made their first contribution in #1427
- @architagr made their first contribution in #1675
- @tsioftas made their first contribution in #1681
- @siliconbrain made their first contribution in #1729
- @bartventer made their first contribution in #1730
- @Ararsa-Derese made their first contribution in #1706
- @renzoarreaza made their first contribution in #1769
- @3scalation made their first contribution in #1743
Full Changelog: https://github.com/stretchr/testify/compare/v1.10.0...v1.11.0
v1.10.0
What's Changed
Functional Changes
- Add PanicAssertionFunc by @fahimbagar in #1337
- assert: deprecate CompareType by @dolmen in #1566
- assert: make YAML dependency pluggable via build tags by @dolmen in #1579
- assert: new assertion NotElementsMatch by @hendrywiranto in #1600
- mock: in order mock calls by @ReyOrtiz in #1637
- Add assertion for NotErrorAs by @palsivertsen in #1129
- Record Return Arguments of a Call by @jayd3e in #1636
- assert.EqualExportedValues: accepts everything by @redachl in #1586
Fixes
- assert: make tHelper a type alias by @dolmen in #1562
- Do not get argument again unnecessarily in Arguments.Error() by @TomWright in #820
- Fix time.Time compare by @myxo in #1582
- assert.Regexp: handle []byte array properly by @kevinburkesegment in #1587
- assert: collect.FailNow() should not panic by @marshall-lee in #1481
- mock: simplify implementation of FunctionalOptions by @dolmen in #1571
- mock: caller information for unexpected method call by @spirin in #1644
- suite: fix test failures by @stevenh in #1421
- Fix issue #1662 (comparing infs should fail) by @ybrustin in #1663
- NotSame should fail if args are not pointers #1661 by @sikehish in #1664
- Increase timeouts in Test_Mock_Called_blocks to reduce flakiness in CI by @sikehish in #1667
- fix: compare functional option names for indirect calls by @arjun-1 in #1626
Documentation, Build & CI
- .gitignore: ignore "go test -c" binaries by @dolmen in #1565
- mock: improve doc by @dolmen in #1570
- mock: fix FunctionalOptions docs by @snirye in #1433
- README: link out to the excellent testifylint by @brackendawson in #1568
- assert: fix typo in comment by @JohnEndson in #1580
- Correct the EventuallyWithT and EventuallyWithTf example by @JonCrowther in #1588
- CI: bump softprops/action-gh-release from 1 to 2 by @dependabot in #1575
- mock: document more alternatives to deprecated AnythingOfTypeArgument by @dolmen in #1569
- assert: Correctly document EqualValues behavior by @brackendawson in #1593
- fix: grammar in godoc by @miparnisari in #1607
- .github/workflows: Run tests for Go 1.22 by @HaraldNordgren in #1629
- Document suite's lack of support for t.Parallel by @brackendawson in #1645
- assert: fix typos in comments by @alexandear in #1650
- mock: fix doc comment for NotBefore by @alexandear in #1651
- Generate better comments for require package by @Neokil in #1610
- README: replace Testify V2 notice with @dolmen's V2 manifesto by @hendrywiranto in #1518
New Contributors
- @fahimbagar made their first contribution in #1337
- @TomWright made their first contribution in #820
- @snirye made their first contribution in #1433
- @myxo made their first contribution in #1582
- @JohnEndson made their first contribution in #1580
- @JonCrowther made their first contribution in #1588
- @miparnisari made their first contribution in #1607
- @marshall-lee made their first contribution in #1481
- @spirin made their first contribution in #1644
- @ReyOrtiz made their first contribution in #1637
- @stevenh made their first contribution in #1421
- @jayd3e made their first contribution in #1636
- @Neokil made their first contribution in #1610
- @redachl made their first contribution in #1586
- @ybrustin made their first contribution in #1663
- @sikehish made their first contribution in #1664
- @arjun-1 made their first contribution in #1626
Full Changelog: https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.