Skip to content

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

Draft
Maikol wants to merge 1 commit into
test/contracts-removal-t5e-rewards-accountingfrom
test/contracts-removal-t5f-rewards-legacy
Draft

Maikol wants to merge 1 commit into
test/contracts-removal-t5e-rewards-accountingfrom
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. That closes 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. Also removes a dead interface and stale comments in the earlier ports, found when reviewing the whole Phase T stack. Stacked on #1385.

@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 (8a429cd).

Additional details and impacted files
@@                                Coverage Diff                                @@
##           test/contracts-removal-t5e-rewards-accounting    #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
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 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
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