Bump github.com/maxbrunsfeld/counterfeiter/v6 from 6.13.0 to 6.14.0 #4544
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4544"
general
weight: 0.35
cpanato
Bumps github.com/maxbrunsfeld/counterfeiter/v6 from 6.13.0 to 6.14.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/maxbrunsfeld/counterfeiter/releases">github.com/maxbrunsfeld/counterfeiter/v6's releases</a>.</em></p>
<blockquote>
<h2>v6.14.0</h2>
<p>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.</p>
<h2>Inspecting calls</h2>
<ul>
<li>🆕 <code><Method>Args()</code> returns every call to a method as a slice of structs, with one exported field per argument: <code>FakeMySpecialInterfaceDoThingsArgs{Arg1: "stuff", Arg2: 5}</code>. You can check a whole call with one <code>Equal</code> or <code>cmp.Diff</code>, and skip an argument with <code>cmpopts.IgnoreFields</code>. Function fakes get the same thing as <code>Args()</code>. <code>ArgsForCall</code> still works as before. <a href="https://github.com/dnephin"><code>@dnephin</code></a> asked for this in 2018. (<a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/392">#392</a>, fixes <a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/106">#106</a>)</li>
<li>🆕 <code>CallOrder()</code> returns the names of a fake's methods in the order they were called, so you can assert that, for example, <code>Write()</code> was called before <code>Commit()</code>. Order across two fakes still isn't recorded; the gomock guide has a stub recipe for that. (<a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/394">#394</a>, fixes <a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/113">#113</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li>🐛 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 <code>Calls(nil)</code> could panic the caller. Both templates call the copy now. (<a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/389">#389</a>)</li>
</ul>
<h2>📖 Docs</h2>
<ul>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/blob/main/docs/migrating-from-gomock.md">docs/migrating-from-gomock.md</a> maps gomock's controller, expectations, matchers, call counts and ordering onto a fake's <code>Returns</code>, <code>Calls</code>, <code>ArgsForCall</code>, <code>CallCount</code>, <code>Args</code> and <code>CallOrder</code>, with the same check shown in testing, testify and gomega.</li>
</ul>
<h2>🧹 Housekeeping</h2>
<ul>
<li>⬆️ gomega 1.43.1 (<a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/391">#391</a>). 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.</li>
<li>⬆️ CodeQL actions</li>
<li>the one table test in the generator package is a spec suite like the rest (<a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/393">#393</a>)</li>
</ul>
<p>Regenerating produces a diff in every fake: the per-method record is the new struct type, and the fake keeps the call order.</p>
<p><strong>Full Changelog</strong>: <a href="https://github.com/maxbrunsfeld/counterfeiter/compare/v6.13.0...v6.14.0">https://github.com/maxbrunsfeld/counterfeiter/compare/v6.13.0...v6.14.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/2692aee661117fdfaeb86970428ba7b616e8ea25"><code>2692aee</code></a> Merge pull request <a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/394">#394</a> from maxbrunsfeld/call-order</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/c400251fac1b0ad422b5e9dea072d13f741c9032"><code>c400251</code></a> Merge pull request <a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/393">#393</a> from maxbrunsfeld/spec-style-import-test</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/6f05184bc6670aff486a2f65b5d540e5edca9262"><code>6f05184</code></a> record the order in which a fake's methods were called</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/bc037e811ff47f175cbbc8b5613b78a01d61e209"><code>bc037e8</code></a> write the import spec the way the rest of the generator specs are written</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/3e30fb08d1d32c118222ab4ba7d06992da953722"><code>3e30fb0</code></a> Merge pull request <a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/392">#392</a> from maxbrunsfeld/typed-args</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/91ef39c66c0b9ddf0bc801edfd0f82529a200f06"><code>91ef39c</code></a> expose a method's recorded arguments as a slice of structs</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/b05d734bd3fba23307ad384c4abb89d0f6af2215"><code>b05d734</code></a> ensure multiple coding harnesses can be used</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/6ac3d93508f2025b51f24ecf5144c6034272a005"><code>6ac3d93</code></a> add a guide for moving from gomock</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/fbce8493e0c309d7fdefb840d1b9be2c0c9b4c67"><code>fbce849</code></a> Merge pull request <a href="https://redirect.github.com/maxbrunsfeld/counterfeiter/issues/391">#391</a> from maxbrunsfeld/dependabot/go_modules/github.com/on...</li>
<li><a href="https://github.com/maxbrunsfeld/counterfeiter/commit/a35112cacd3f4373453d7bfe69ba7f559d8fe9b7"><code>a35112c</code></a> Bump github.com/onsi/gomega from 1.43.0 to 1.43.1</li>
<li>Additional commits viewable in <a href="https://github.com/maxbrunsfeld/counterfeiter/compare/v6.13.0...v6.14.0">compare view</a></li>
</ul>
</details>
<br />

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-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)</details>