Skip to content

test: cover UnzipBy3 through UnzipBy9 - #961

Open
vignesh2027 wants to merge 1 commit into
samber:masterfrom
vignesh2027:test/unzipby-3-to-9
Open

test: cover UnzipBy3 through UnzipBy9#961
vignesh2027 wants to merge 1 commit into
samber:masterfrom
vignesh2027:test/unzipby-3-to-9

Conversation

@vignesh2027

Copy link
Copy Markdown
Contributor

Description

TestUnzipBy only exercised UnzipBy2, so UnzipBy3 through UnzipBy9 had 0% test coverage (the UnzipByErr* variants are already fully tested, but the non-error UnzipBy* arities beyond 2 were missed).

This PR adds a test for each arity, following the existing TestUnzipBy style — a two-element input and an iteratee that transforms every field, asserting the regrouped output slices.

Result

UnzipBy3UnzipBy9 each go to 100% coverage; package coverage rises from 95.2% to 98.6%.

  • go test -run TestUnzipBy . passes
  • gofmt, go vet, and golangci-lint are clean

Tests only — no production code changed.

TestUnzipBy only exercised UnzipBy2, leaving UnzipBy3 through UnzipBy9
with no test coverage. Add a test for each arity following the existing
TestUnzipBy style, bringing all of them to 100% coverage.
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.77%. Comparing base (1fd9124) to head (2a91d7f).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #961      +/-   ##
==========================================
+ Coverage   93.64%   95.77%   +2.13%     
==========================================
  Files          32       32              
  Lines        5520     5520              
==========================================
+ Hits         5169     5287     +118     
+ Misses        244      126     -118     
  Partials      107      107              
Flag Coverage Δ
unittests 95.77% <ø> (+2.13%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant