Skip to content

feat: port benchmark test cases from Go to Java#480

Merged
hsluoyz merged 2 commits intomasterfrom
copilot/remove-jcasbin-benchmark-tests
Dec 31, 2025
Merged

feat: port benchmark test cases from Go to Java#480
hsluoyz merged 2 commits intomasterfrom
copilot/remove-jcasbin-benchmark-tests

Conversation

Copy link
Contributor

Copilot AI commented Dec 28, 2025

fix: #479

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@hsluoyz hsluoyz marked this pull request as ready for review December 28, 2025 09:18
@codecov-commenter
Copy link

codecov-commenter commented Dec 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.31%. Comparing base (d2c53b3) to head (38e9450).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #480   +/-   ##
=======================================
  Coverage   67.31%   67.31%           
=======================================
  Files          60       60           
  Lines        3004     3004           
  Branches      559      559           
=======================================
  Hits         2022     2022           
  Misses        802      802           
  Partials      180      180           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Removed all existing jCasbin benchmark tests
- Created EnforcerBenchmarkTest.java (ported from model_b_test.go)
- Created CachedEnforcerBenchmarkTest.java (ported from enforcer_cached_b_test.go)
- Created ManagementApiBenchmarkTest.java (ported from management_api_b_test.go)
- Created RoleManagerBenchmarkTest.java (ported from role_manager_b_test.go)
- All tests follow JMH benchmark structure and compile successfully

Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove existing jCasbin benchmark tests and port Go tests Port Go Casbin benchmark tests to jCasbin with matching structure Dec 28, 2025
Copilot AI requested a review from hsluoyz December 28, 2025 09:27
@hsluoyz hsluoyz changed the title Port Go Casbin benchmark tests to jCasbin with matching structure feat: port benchmark test cases from Go to Java Dec 31, 2025
@hsluoyz hsluoyz merged commit 463a6ce into master Dec 31, 2025
2 of 4 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.

[feature] remove all existing jCasbin benchmark tests and add the tests just like Go Casbin

4 participants