Skip to content

test(issuance): port legacy RewardsManager suite to Foundry - #1386

Merged
Maikol merged 1 commit into
chore/contracts-removal-phase-0from
test/contracts-removal-t5f-rewards-legacy
Oct 30, 2026
Merged

Maikol merged 1 commit into
chore/contracts-removal-phase-0from
test/contracts-removal-t5f-rewards-legacy

Conversation

@Maikol

@Maikol Maikol commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Ports the cases from the old rewards.test.ts that no earlier port covers to Foundry, and deletes the file, closing the RewardsManager test migration. Each of its 42 cases was checked by assertion against the tests already ported, and 6 had assertions not covered elsewhere. Helpers duplicated across the RewardsManager test files now live in the shared base.

@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.41%. Comparing base (168bc53) to head (39196ef).
⚠️ Report is 1 commits behind head on chore/contracts-removal-phase-0.

Additional details and impacted files
@@                         Coverage Diff                         @@
##           chore/contracts-removal-phase-0    #1386      +/-   ##
===================================================================
- Coverage                            82.29%   81.41%   -0.89%     
===================================================================
  Files                                   81       81              
  Lines                                 5326     5326              
  Branches                              1132      973     -159     
===================================================================
- Hits                                  4383     4336      -47     
- Misses                                 921      968      +47     
  Partials                                22       22              
Flag Coverage Δ
unittests 81.41% <ø> (-0.89%) ⬇️

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

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Maikol
Maikol force-pushed the test/contracts-removal-t5f-rewards-legacy branch from 5647056 to e6d0b16 Compare October 29, 2026 17:34
@Maikol
Maikol force-pushed the test/contracts-removal-t5e-rewards-accounting branch from 3a7004e to 6d153d6 Compare October 29, 2026 17:34
@Maikol
Maikol force-pushed the test/contracts-removal-t5f-rewards-legacy branch from e6d0b16 to 82c840f Compare October 29, 2026 18:42
@Maikol
Maikol force-pushed the test/contracts-removal-t5e-rewards-accounting branch from 6d153d6 to 0f62cdd Compare October 29, 2026 18:42
@Maikol
Maikol force-pushed the test/contracts-removal-t5f-rewards-legacy branch from 82c840f to 767612b Compare October 29, 2026 18:48
@Maikol
Maikol force-pushed the test/contracts-removal-t5e-rewards-accounting branch from 0f62cdd to 337ed2b Compare October 29, 2026 18:48
@Maikol
Maikol force-pushed the test/contracts-removal-t5f-rewards-legacy branch from 767612b to 8a429cd Compare October 29, 2026 20:07
@Maikol
Maikol force-pushed the test/contracts-removal-t5e-rewards-accounting branch from 337ed2b to 168bc53 Compare October 29, 2026 20:07
@Maikol
Maikol changed the base branch from test/contracts-removal-t5e-rewards-accounting to chore/contracts-removal-phase-0 October 30, 2026 12:41
Port the unique cases of rewards.test.ts to legacySuite.t.sol, map the
duplicates to the existing tests and delete the TS file. Move the shared
deny, oracle, reclaim and accrue helpers into shared.t.sol.
@Maikol
Maikol force-pushed the test/contracts-removal-t5f-rewards-legacy branch from 8a429cd to 39196ef Compare October 30, 2026 12:47
@Maikol
Maikol merged commit 39196ef into chore/contracts-removal-phase-0 Oct 30, 2026
2 checks passed
@Maikol
Maikol deleted the test/contracts-removal-t5f-rewards-legacy branch October 30, 2026 12:49
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.

1 participant