π Overview
Expand test coverage for the escrow module by adding 3 new tests (Part 1 of 2).
β
Tasks
π§ͺ New Tests (3 total)
Test 1: Lock Stake Multiple Users
#[test]
fn test_lock_stake_multiple_users() {
// Lock stakes for multiple users
// Verify each user's balance is tracked separately
// Verify total locked amount is correct
}
Test 2: Release Payout Partial Amount
#[test]
fn test_release_payout_partial_amount() {
// Lock stake
// Release partial payout
// Verify remaining locked balance
// Release rest
// Verify balance is zero
}
Test 3: Lock Stake Insufficient Balance
#[test]
fn test_lock_stake_insufficient_balance() {
// Try to lock more than user has
// Should fail with insufficient balance error
}
π Verification
π Overview
Expand test coverage for the escrow module by adding 3 new tests (Part 1 of 2).
β Tasks
contract/tests/escrow_tests.rsπ§ͺ New Tests (3 total)
Test 1: Lock Stake Multiple Users
Test 2: Release Payout Partial Amount
Test 3: Lock Stake Insufficient Balance
π Verification