Skip to content

test: add comprehensive tests for ParseBytes, CustomRevert, CurrencyD…#1011

Open
amussara wants to merge 1 commit intoUniswap:mainfrom
amussara:add-library-tests
Open

test: add comprehensive tests for ParseBytes, CustomRevert, CurrencyD…#1011
amussara wants to merge 1 commit intoUniswap:mainfrom
amussara:add-library-tests

Conversation

@amussara
Copy link
Copy Markdown

…elta, and CurrencyReserves libraries

Add test suites for four previously untested libraries:

  • ParseBytes: 15 tests covering parseSelector, parseReturnDelta, parseFee with boundary values and fuzz tests for all three functions
  • CustomRevert: 18 tests covering all revertWith overloads (no-args, address, int24, uint160, two-arg variants) and bubbleUpAndRevertWith with ERC-7751 WrappedError encoding verification
  • CurrencyDelta: 13 tests covering getDelta defaults, applyDelta accumulation, net-to-zero, currency/address isolation, slot determinism, and boundary values
  • CurrencyReserves: 9 tests covering sync/reset lifecycle, slot constant verification, overwrite behavior, and boundary values

All tests include fuzz testing for robustness.

Related Issue

Which issue does this pull request resolve?

Description of changes

…elta, and CurrencyReserves libraries

Add test suites for four previously untested libraries:

- ParseBytes: 15 tests covering parseSelector, parseReturnDelta, parseFee
  with boundary values and fuzz tests for all three functions
- CustomRevert: 18 tests covering all revertWith overloads (no-args, address,
  int24, uint160, two-arg variants) and bubbleUpAndRevertWith with ERC-7751
  WrappedError encoding verification
- CurrencyDelta: 13 tests covering getDelta defaults, applyDelta accumulation,
  net-to-zero, currency/address isolation, slot determinism, and boundary values
- CurrencyReserves: 9 tests covering sync/reset lifecycle, slot constant
  verification, overwrite behavior, and boundary values

All tests include fuzz testing for robustness.
@amussara amussara requested a review from a team as a code owner February 16, 2026 23:22
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