gin-contrib / timeout

Timeout middleware for Gin
MIT License
185 stars 38 forks source link

refactor: refactor timeout handling in timeout.go and timeout_test.go #62

Closed appleboy closed 12 months ago

appleboy commented 12 months ago

reverted PR #54

codecov-commenter commented 12 months ago

Codecov Report

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

Comparison is base (df5d291) 92.91% compared to head (f1ccf97) 94.91%. Report is 4 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #62 +/- ## ========================================== + Coverage 92.91% 94.91% +2.00% ========================================== Files 4 4 Lines 127 118 -9 ========================================== - Hits 118 112 -6 + Misses 6 4 -2 + Partials 3 2 -1 ``` | [Flag](https://app.codecov.io/gh/gin-contrib/timeout/pull/62/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | Coverage Δ | | |---|---|---| | [go-](https://app.codecov.io/gh/gin-contrib/timeout/pull/62/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `94.91% <100.00%> (?)` | | | [go-1.18](https://app.codecov.io/gh/gin-contrib/timeout/pull/62/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `94.91% <100.00%> (+2.00%)` | :arrow_up: | | [go-1.19](https://app.codecov.io/gh/gin-contrib/timeout/pull/62/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `94.91% <100.00%> (+2.00%)` | :arrow_up: | | [go-1.20](https://app.codecov.io/gh/gin-contrib/timeout/pull/62/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `94.91% <100.00%> (?)` | | | [go-1.21](https://app.codecov.io/gh/gin-contrib/timeout/pull/62/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `89.83% <100.00%> (?)` | | | [macos-latest](https://app.codecov.io/gh/gin-contrib/timeout/pull/62/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `94.91% <100.00%> (?)` | | | [ubuntu-latest](https://app.codecov.io/gh/gin-contrib/timeout/pull/62/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `94.91% <100.00%> (+2.00%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib#carryforward-flags-in-the-pull-request-comment) to find out more.

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