gin-contrib / cors

Official CORS gin's middleware
https://gin-gonic.github.io/gin/
MIT License
1.79k stars 186 forks source link

test: improve CORS wildcard handling and testing #144

Closed appleboy closed 8 months ago

appleboy commented 8 months ago
codecov-commenter commented 8 months ago

Codecov Report

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

Project coverage is 95.11%. Comparing base (fcbd06f) to head (37af0f5).

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #144 +/- ## ========================================== + Coverage 94.22% 95.11% +0.88% ========================================== Files 3 3 Lines 225 225 ========================================== + Hits 212 214 +2 + Misses 12 11 -1 + Partials 1 0 -1 ``` | [Flag](https://app.codecov.io/gh/gin-contrib/cors/pull/144/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/cors/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `95.11% <ø> (+0.88%)` | :arrow_up: | | [go-1.18](https://app.codecov.io/gh/gin-contrib/cors/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `95.11% <ø> (+0.88%)` | :arrow_up: | | [go-1.19](https://app.codecov.io/gh/gin-contrib/cors/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `95.11% <ø> (+0.88%)` | :arrow_up: | | [go-1.20](https://app.codecov.io/gh/gin-contrib/cors/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `95.11% <ø> (+0.88%)` | :arrow_up: | | [go-1.21](https://app.codecov.io/gh/gin-contrib/cors/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `95.11% <ø> (+0.88%)` | :arrow_up: | | [go-1.22](https://app.codecov.io/gh/gin-contrib/cors/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `95.11% <ø> (+0.88%)` | :arrow_up: | | [macos-latest](https://app.codecov.io/gh/gin-contrib/cors/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `95.11% <ø> (+0.88%)` | :arrow_up: | | [ubuntu-latest](https://app.codecov.io/gh/gin-contrib/cors/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gin-contrib) | `95.11% <ø> (+0.88%)` | :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.