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.

TestCovers
launchthe launch transaction, the first buy at the base fee, the anti-sniper schedule, numbering
register_coin refusalsmissing creator transfer, wrong signer, wrong pool creator, foreign config, wrong mint, bad stars, changed share, pause
adopt_pooladoption by the admin and every refusal
feesexact split to the star, two coins apart, stray SOL, the treasury
migrationgraduation, the locked position, pool trades, harvest_migrated, wrong positions
admininitialize and its refusals, every setter, pause, the handover