Skip to content

test: add full coverage for DeltaResolver#511

Open
eversoluna wants to merge 1 commit intoUniswap:mainfrom
eversoluna:main
Open

test: add full coverage for DeltaResolver#511
eversoluna wants to merge 1 commit intoUniswap:mainfrom
eversoluna:main

Conversation

@eversoluna
Copy link
Copy Markdown

Summary

Adds full branch coverage for DeltaResolver.sol by updating MockDeltaResolver and DeltaResolver.t.sol.

The new tests exercise:

  • positive and negative delta paths in _getFullDebt / _getFullCredit
  • early-return behavior in _take and _settle
  • OPEN_DELTA and CONTRACT_BALANCE handling in amount mapping helpers
  • wrap / unwrap balance checks and revert paths

Notes

  • Tests only, no production code changes
  • Uses unlock context to safely observe transient deltas
  • Ensures all deltas are cleared before returning to satisfy PoolManager invariants

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