Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: refactor test suite for excluded paths and extensions #80

Merged
merged 1 commit into from
Mar 23, 2024
Merged

Conversation

appleboy
Copy link
Member

  • Update test function name to TestExcludedPathsAndExtensions
  • Add test cases for excluded paths and extensions
  • Modify router usage in test function
  • Adjust assertions for content encoding, vary, body, and content length

- Update test function name to `TestExcludedPathsAndExtensions`
- Add test cases for excluded paths and extensions
- Modify router usage in test function
- Adjust assertions for content encoding, vary, body, and content length

Signed-off-by: appleboy <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Mar 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.35%. Comparing base (d3b1ccd) to head (0ae2960).

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #80   +/-   ##
=======================================
  Coverage   81.35%   81.35%           
=======================================
  Files           3        3           
  Lines         118      118           
=======================================
  Hits           96       96           
  Misses         19       19           
  Partials        3        3           
Flag Coverage Δ
go- 81.35% <ø> (ø)
go-1.18 81.35% <ø> (ø)
go-1.19 81.35% <ø> (ø)
go-1.20 81.35% <ø> (ø)
go-1.21 81.35% <ø> (ø)
go-1.22 81.35% <ø> (ø)
macos-latest 81.35% <ø> (ø)
ubuntu-latest 81.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@appleboy appleboy merged commit ef7d482 into master Mar 23, 2024
9 checks passed
@appleboy appleboy deleted the lint branch March 23, 2024 11:47
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.

2 participants