Description
Must not move wrong asset.
Requirements and context
-
Minimum 95% coverage on new test code paths
-
Edge cases enumerated in PR
-
Must be secure, fully tested, and documented
-
Should be efficient and easy to review for auditors and integrators
Suggested execution
- Fork the repository and create a branch:
git checkout -b test/regression-wrong-token
- Implement the changes listed below
- Open a draft PR early for design feedback
Implement
- Add tests under
tests/ or src/test.rs
- Document fixtures in
TESTING_GUIDE.md if needed
Tests and documentation
- Add or extend automated tests:
tests/create_vault.rs, src/test.rs
- Add or update documentation:
TESTING_GUIDE.md, TEST_SUMMARY.md
- Add Rustdoc (
///) on public contract APIs where applicable (NatSpec-style)
- Validate stated security assumptions explicitly in PR description
Test and commit
- Run the full contract test suite (e.g.
cargo test, Soroban local sandbox if applicable)
- Cover edge cases called out in this issue
- Attach test output summary and short security notes in the PR
- Ensure minimum 95% line coverage for touched modules (
cargo tarpaulin / project standard)
Example commit message
test(soroban): regression wrong token
Guidelines
| Item |
Target |
| Test coverage |
≥ 95% on changed code |
| Documentation |
Clear, versioned, matches on-chain behavior |
| Timeframe |
96 hours from assignment |
Description
Must not move wrong asset.
Requirements and context
Minimum 95% coverage on new test code paths
Edge cases enumerated in PR
Must be secure, fully tested, and documented
Should be efficient and easy to review for auditors and integrators
Suggested execution
git checkout -b test/regression-wrong-tokenImplement
tests/orsrc/test.rsTESTING_GUIDE.mdif neededTests and documentation
tests/create_vault.rs,src/test.rsTESTING_GUIDE.md,TEST_SUMMARY.md///) on public contract APIs where applicable (NatSpec-style)Test and commit
cargo test, Soroban local sandbox if applicable)cargo tarpaulin/ project standard)Example commit message
Guidelines