Closed imp2002 closed 8 months ago
Because the previous unit tests defaulted to a File Adapter that didn't implement addPolicy()
and removePolicy()
, ignoring the impact of autoSave, implementing addPolicy()
and removePolicy()
now results in inconsistent expect. Therefore, it is necessary to modify the previous tests.
For example:
Following the implementation of File Adapter's addPolicy() method, the policy will change when autoSave
is enabled.
@imp2002 you can keep that existing test in AutoSave OFF mode. Then add a new test case which enables AutoSave
Attention: Patch coverage is 52.38095%
with 10 lines
in your changes are missing coverage. Please review.
Project coverage is 69.04%. Comparing base (
c56af29
) to head (1afb96a
).
Files | Patch % | Lines |
---|---|---|
...sbin/jcasbin/persist/file_adapter/FileAdapter.java | 52.38% | 7 Missing and 3 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:tada: This PR is included in version 1.54.0 :tada:
The release is available on:
v1.54.0
Your semantic-release bot :package::rocket:
@tangyang9464 please review