cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.04k stars 491 forks source link

test: Increase pkg/common/utils coverage to more than 93% #1108

Closed ricardo3202 closed 3 weeks ago

ricardo3202 commented 3 months ago

What type of PR is this?

test

Check the PR title.

(Optional) Translate the PR title into Chinese.

提高对pkg/common/utils的覆盖率至93%以上

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:Increased unit test coverage for pkg/common/utils from 91.1% to 93.3% zh(optional):提高对pkg/common/utils的单元测试,覆盖率从91.1%提高到了93.3%

(Optional) Which issue(s) this PR fixes:

(Optional) The PR that updates user documentation:

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.89%. Comparing base (9162dd1) to head (760f2b5). Report is 8 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1108 +/- ## =========================================== + Coverage 82.75% 82.89% +0.14% =========================================== Files 98 98 Lines 10044 10062 +18 =========================================== + Hits 8312 8341 +29 + Misses 1241 1232 -9 + Partials 491 489 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.