Overview
Both get_deposit (contracts/maintenance-pool/src/lib.rs:417-422) and reclaim_deposit (:245-250) return Error::DepositNotFound for a deposit_index that doesn't exist under an existing pool_id. grep -c "DepositNotFound" contracts/maintenance-pool/src/test.rs returns 0. (Contrast the existing test_get_pool_and_withdraw_reject_nonexistent_pool, which covers a nonexistent pool, not a nonexistent deposit index within an existing pool — the distinction issue #46, already closed and correctly fixed at the code level, was about.)
Requirements
Add tests for get_deposit and reclaim_deposit called with a valid pool_id but an out-of-range deposit_index.
Acceptance Criteria
Additional Notes
Verified via grep -c "DepositNotFound" contracts/maintenance-pool/src/test.rs (0 matches).
Overview
Both
get_deposit(contracts/maintenance-pool/src/lib.rs:417-422) andreclaim_deposit(:245-250) returnError::DepositNotFoundfor adeposit_indexthat doesn't exist under an existingpool_id.grep -c "DepositNotFound" contracts/maintenance-pool/src/test.rsreturns 0. (Contrast the existingtest_get_pool_and_withdraw_reject_nonexistent_pool, which covers a nonexistent pool, not a nonexistent deposit index within an existing pool — the distinction issue #46, already closed and correctly fixed at the code level, was about.)Requirements
Add tests for
get_depositandreclaim_depositcalled with a validpool_idbut an out-of-rangedeposit_index.Acceptance Criteria
Error::DepositNotFoundcargo test --workspacepassesAdditional Notes
Verified via
grep -c "DepositNotFound" contracts/maintenance-pool/src/test.rs(0 matches).