Skip to content

Issue 12 — Zero test coverage across all contracts #12

Description

@Junman140

Labels: testing, priority:critical
Body:

Problem
No #[test] exists anywhere in wpi-token, mock-usdc (pre-removal), or mock-amm.
Proposed fix
Add unit tests for: initialize (double-init rejected), mint/burn (admin-only enforced), transfer/transfer_from (insufficient balance/allowance), pause gating, and an end-to-end deposit→mint→transfer→burn flow using soroban-sdk testutils.
Acceptance criteria

80% line coverage on wpi-token
Overflow/edge-case tests included
CI (Issue 11) runs these on every PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions