Skip to content

Add dedicated unit test suite for WIMX.sol - #315

Open
Sohailghafoor wants to merge 1 commit into
immutable:mainfrom
Sohailghafoor:test/wimx-unit-coverage
Open

Add dedicated unit test suite for WIMX.sol#315
Sohailghafoor wants to merge 1 commit into
immutable:mainfrom
Sohailghafoor:test/wimx-unit-coverage

Conversation

@Sohailghafoor

Copy link
Copy Markdown

WIMX.sol (the Wrapped IMX token) had no standalone tests and was only reached indirectly through StakeHolderWIMX integration tests, leaving it at 29.63% line / 14.29% branch coverage per forge coverage.

This adds a focused Foundry test suite covering deposit (direct call and plain-value receive), withdraw (success, full-balance, insufficient-balance revert), transfer, transferFrom (self-transfer, explicit allowance decrement, infinite-allowance passthrough, insufficient allowance/balance reverts), approve, totalSupply, and a deposit/withdraw round-trip fuzz test.

WIMX.sol is now at 100% line/statement/branch/function coverage. No production code changed.

WIMX.sol had no standalone tests and was only reached indirectly through
StakeHolderWIMX integration tests, leaving it at 29.63% line / 14.29%
branch coverage (forge coverage). Add a focused Foundry test suite
covering deposit (both direct call and plain-value receive), withdraw
(success, full-balance, and insufficient-balance revert), transfer,
transferFrom (self-transfer, explicit allowance decrement, infinite
allowance passthrough, insufficient allowance/balance reverts), approve,
totalSupply, and a deposit/withdraw round-trip fuzz test.

WIMX.sol now sits at 100% line/statement/branch/function coverage.
@Sohailghafoor
Sohailghafoor requested a review from a team as a code owner August 12, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant