Skip to content

test: add zero boundary assertions to TestSafeInt8 and TestSafeUint16 - #4810

Open
aoright wants to merge 1 commit into
gin-gonic:masterfrom
aoright:test/safe-int-zero-boundary
Open

test: add zero boundary assertions to TestSafeInt8 and TestSafeUint16#4810
aoright wants to merge 1 commit into
gin-gonic:masterfrom
aoright:test/safe-int-zero-boundary

Conversation

@aoright

@aoright aoright commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • In utils_test.go, add 0 value boundary checks to TestSafeInt8 and TestSafeUint16.

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4810      +/-   ##
==========================================
- Coverage   99.21%   98.39%   -0.83%     
==========================================
  Files          42       48       +6     
  Lines        3182     3172      -10     
==========================================
- Hits         3157     3121      -36     
- Misses         17       41      +24     
- Partials        8       10       +2     
Flag Coverage Δ
?
--ldflags="-checklinkname=0" -tags sonic 98.37% <ø> (?)
-tags go_json 98.25% <ø> (?)
-tags nomsgpack 98.30% <ø> (?)
go-1.18 ?
go-1.19 ?
go-1.20 ?
go-1.21 ?
go-1.25 98.32% <ø> (?)
go-1.26 98.39% <ø> (?)
macos-latest 98.39% <ø> (-0.83%) ⬇️
ubuntu-latest 98.32% <ø> (-0.89%) ⬇️

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