-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Added Unit Tests for addPolicies
and removePolicies
#66
Conversation
Fixes casbin#65. Added the following tests in `management_api.rs`: - `test_modify_policies_api` - `test_modify_policies_api` Modified the following tests in `rbac_api.rs`: - `test_role_api` - `test_permission_api` - `test_role_api_threads`
Could you please format the code? It looks like the CI build failed. |
Thank you for pointing that out! Formatted the code. |
Codecov Report
@@ Coverage Diff @@
## master #66 +/- ##
=========================================
Coverage ? 80.46%
=========================================
Files ? 18
Lines ? 2580
Branches ? 0
=========================================
Hits ? 2076
Misses ? 504
Partials ? 0
Continue to review full report at Codecov.
|
Please add |
Hello @drholmie I believe there are many |
Ah! Thank you for pointing that out @GopherJ I believe you meant in the |
Added more |
Thanks! |
Thanks for approving this and for all the help :) |
Fixes #65.
Added the following tests in
management_api.rs
:test_modify_policies_api
test_modify_grouping_policies_api
For:
Modified the following tests in
rbac_api.rs
:test_role_api
test_permission_api
test_role_api_threads
For: