Skip to content

Bump github.com/maxbrunsfeld/counterfeiter/v6 from 6.13.0 to 6.14.0 - #457

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/maxbrunsfeld/counterfeiter/v6-6.14.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/maxbrunsfeld/counterfeiter/v6-6.14.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 30, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/maxbrunsfeld/counterfeiter/v6 from 6.13.0 to 6.14.0.

Release notes

Sourced from github.com/maxbrunsfeld/counterfeiter/v6's releases.

v6.14.0

This release has two additions to the fake API for reading back what a fake was called with, a fix for a race in methods without return values, and a guide for anyone coming from gomock.

Inspecting calls

  • 🆕 <Method>Args() returns every call to a method as a slice of structs, with one exported field per argument: FakeMySpecialInterfaceDoThingsArgs{Arg1: "stuff", Arg2: 5}. You can check a whole call with one Equal or cmp.Diff, and skip an argument with cmpopts.IgnoreFields. Function fakes get the same thing as Args(). ArgsForCall still works as before. @​dnephin asked for this in 2018. (#392, fixes #106)
  • 🆕 CallOrder() returns the names of a fake's methods in the order they were called, so you can assert that, for example, Write() was called before Commit(). Order across two fakes still isn't recorded; the gomock guide has a stub recipe for that. (#394, fixes #113)

Fixes

  • 🐛 A method with no return values called its stub field again after unlocking, instead of the copy it took under the lock. Swapping the stub from another goroutine at that moment was a data race, and Calls(nil) could panic the caller. Both templates call the copy now. (#389)

📖 Docs

  • docs/migrating-from-gomock.md maps gomock's controller, expectations, matchers, call counts and ordering onto a fake's Returns, Calls, ArgsForCall, CallCount, Args and CallOrder, with the same check shown in testing, testify and gomega.

🧹 Housekeeping

  • ⬆️ gomega 1.43.1 (#391). go-cmp is a direct dependency now because a spec imports it; it was already in go.mod through gomega, and a module that has counterfeiter as a tool sees no change.
  • ⬆️ CodeQL actions
  • the one table test in the generator package is a spec suite like the rest (#393)

Regenerating produces a diff in every fake: the per-method record is the new struct type, and the fake keeps the call order.

Full Changelog: maxbrunsfeld/counterfeiter@v6.13.0...v6.14.0

Commits
  • 2692aee Merge pull request #394 from maxbrunsfeld/call-order
  • c400251 Merge pull request #393 from maxbrunsfeld/spec-style-import-test
  • 6f05184 record the order in which a fake's methods were called
  • bc037e8 write the import spec the way the rest of the generator specs are written
  • 3e30fb0 Merge pull request #392 from maxbrunsfeld/typed-args
  • 91ef39c expose a method's recorded arguments as a slice of structs
  • b05d734 ensure multiple coding harnesses can be used
  • 6ac3d93 add a guide for moving from gomock
  • fbce849 Merge pull request #391 from maxbrunsfeld/dependabot/go_modules/github.com/on...
  • a35112c Bump github.com/onsi/gomega from 1.43.0 to 1.43.1
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/maxbrunsfeld/counterfeiter/v6](https://github.com/maxbrunsfeld/counterfeiter) from 6.13.0 to 6.14.0.
- [Release notes](https://github.com/maxbrunsfeld/counterfeiter/releases)
- [Commits](maxbrunsfeld/counterfeiter@v6.13.0...v6.14.0)

---
updated-dependencies:
- dependency-name: github.com/maxbrunsfeld/counterfeiter/v6
  dependency-version: 6.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants