Skip to content

refactor: use b.Loop() to simplify the code and improve performance#4389

Merged
appleboy merged 1 commit intogin-gonic:masterfrom
reddaisyy:master
Oct 9, 2025
Merged

refactor: use b.Loop() to simplify the code and improve performance#4389
appleboy merged 1 commit intogin-gonic:masterfrom
reddaisyy:master

Conversation

@reddaisyy
Copy link
Copy Markdown
Contributor

@reddaisyy reddaisyy commented Oct 8, 2025

Pull Request Checklist

Please ensure your pull request meets the following requirements:

  • Open your pull request against the master branch.
  • All tests pass in available continuous integration systems (e.g., GitHub Actions).
  • Tests are added or modified as needed to cover code changes.
  • If the pull request introduces a new feature, the feature is documented in the docs/doc.md.

These changes use b.Loop() to simplify the code and improve performance

Supported by Go Team, more info: https://go.dev/blog/testing-b-loop

More info can see https://go.dev/issue/73137.

Signed-off-by: reddaisyy <reddaisy@outlook.jp>
@appleboy appleboy merged commit 9968c4b into gin-gonic:master Oct 9, 2025
13 of 23 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.81%. Comparing base (3dc1cd6) to head (6d14ee1).
⚠️ Report is 190 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4389      +/-   ##
==========================================
- Coverage   99.21%   98.81%   -0.40%     
==========================================
  Files          42       44       +2     
  Lines        3182     3463     +281     
==========================================
+ Hits         3157     3422     +265     
- Misses         17       30      +13     
- Partials        8       11       +3     
Flag Coverage Δ
?
--ldflags="-checklinkname=0" -tags sonic 98.80% <ø> (?)
-tags go_json 98.74% <ø> (?)
-tags nomsgpack 98.80% <ø> (?)
go-1.18 ?
go-1.19 ?
go-1.20 ?
go-1.21 ?
go-1.24 98.81% <ø> (?)
go-1.25 98.81% <ø> (?)
macos-latest ?
ubuntu-latest 98.81% <ø> (-0.40%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants