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

feat: improve casbin mw #107

Merged
merged 3 commits into from
Dec 28, 2023
Merged

feat: improve casbin mw #107

merged 3 commits into from
Dec 28, 2023

Conversation

laychopy
Copy link
Contributor

Summary

This PR adds a README.md and improves the coverage test for Casbin middleware.

Description

We changed all hardcoded status codes by the standard's lib constants and echo's HTTP method constants and added a custom skipper test case to improve the package's coverage test.

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (939b0a9) 63.77% compared to head (5fa66a2) 64.08%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
+ Coverage   63.77%   64.08%   +0.31%     
==========================================
  Files           9        9              
  Lines         944      944              
==========================================
+ Hits          602      605       +3     
+ Misses        302      300       -2     
+ Partials       40       39       -1     

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

Copy link
Contributor

@aldas aldas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

for anyone passing by - echo casbin docs can be found also here https://echo.labstack.com/docs/middleware/casbin-auth

@aldas aldas merged commit fdc9c9a into labstack:master Dec 28, 2023
12 checks passed
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