gin-contrib / timeout

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

feat: add Status method to Writer struct and update test #63

Closed appleboy closed 12 months ago

appleboy commented 12 months ago

fixed by @zhyee

fixed https://github.com/gin-contrib/timeout/pull/52 fixed https://github.com/gin-contrib/timeout/pull/51

codecov-commenter commented 12 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (f2805fd) 94.91% compared to head (1f61d12) 92.68%.

Files Patch % Lines
writer.go 40.00% 2 Missing and 1 partial :warning:

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #63 +/- ## ========================================== - Coverage 94.91% 92.68% -2.24% ========================================== Files 4 4 Lines 118 123 +5 ========================================== + Hits 112 114 +2 - Misses 4 6 +2 - Partials 2 3 +1 ``` | [Flag](https://app.codecov.io/gh/gin-contrib/timeout/pull/63/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/63/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `92.68% <40.00%> (-2.24%)` | :arrow_down: | | [go-1.18](https://app.codecov.io/gh/gin-contrib/timeout/pull/63/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `92.68% <40.00%> (-2.24%)` | :arrow_down: | | [go-1.19](https://app.codecov.io/gh/gin-contrib/timeout/pull/63/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `87.80% <40.00%> (-2.03%)` | :arrow_down: | | [go-1.20](https://app.codecov.io/gh/gin-contrib/timeout/pull/63/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `92.68% <40.00%> (-2.24%)` | :arrow_down: | | [go-1.21](https://app.codecov.io/gh/gin-contrib/timeout/pull/63/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `92.68% <40.00%> (+0.31%)` | :arrow_up: | | [macos-latest](https://app.codecov.io/gh/gin-contrib/timeout/pull/63/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `92.68% <40.00%> (-2.24%)` | :arrow_down: | | [ubuntu-latest](https://app.codecov.io/gh/gin-contrib/timeout/pull/63/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `92.68% <40.00%> (-2.24%)` | :arrow_down: | 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.