Docs / Running it
Testing
What the suite covers.
The suite
cargo test -p fomopad runs ten end-to-end tests in LiteSVM with the real Meteora DBC, DAMM v2 and Metaplex programs dumped from mainnet. Every successful transaction re-checks the money invariants on each pad account it touched: the config holds its rent plus the pad's share, a coin holds at least its rent.
| Test | Covers |
|---|---|
| launch | the launch transaction, the first buy at the base fee, the anti-sniper schedule, numbering |
| register_coin refusals | missing creator transfer, wrong signer, wrong pool creator, foreign config, wrong mint, bad stars, changed share, pause |
| adopt_pool | adoption by the admin and every refusal |
| fees | exact split to the star, two coins apart, stray SOL, the treasury |
| migration | graduation, the locked position, pool trades, harvest_migrated, wrong positions |
| admin | initialize and its refusals, every setter, pause, the handover |