Skip to content

Test/bid placement withdrawal#271#517

Closed
ayomideadeniran wants to merge 3 commits intoQuickLendX:mainfrom
ayomideadeniran:test/bid-placement-withdrawal
Closed

Test/bid placement withdrawal#271#517
ayomideadeniran wants to merge 3 commits intoQuickLendX:mainfrom
ayomideadeniran:test/bid-placement-withdrawal

Conversation

@ayomideadeniran
Copy link

Summary

This PR adds focused Soroban/Rust smart contract tests for Issue #271 covering bid placement and withdrawal behavior.

Implemented test matrix:

  • place_bid
    • valid bid succeeds
    • unverified investor is rejected
    • bid over investor limit is rejected
    • bid on wrong invoice status is rejected
  • withdraw_bid
    • bid owner can withdraw
    • non-owner fails authorization
    • accepted bid cannot be withdrawn
    • already withdrawn bid cannot be withdrawn again

Changes

  • Added new test module:
    • quicklendx-contracts/src/test/test_bid_placement_withdrawal.rs
  • Wired module into test harness:
    • quicklendx-contracts/src/test.rs
  • Added execution-output note:
    • quicklendx-contracts/TEST_OUTPUT_ISSUE_271.md

Why

These tests directly validate the required placement/withdrawal authorization and status constraints, reducing regression risk in core bid lifecycle paths.

Commits

  • test: add place_bid scenario coverage
  • test: add withdraw_bid edge case coverage
  • docs: add issue 271 test execution output

Testing

Command attempted:

cargo test -q test_bid_placement_withdrawal --manifest-path quicklendx-contracts/Cargo.toml

In this environment, test execution is blocked by a filesystem error (Invalid cross-device link (os error 18)), captured in quicklendx-contracts/TEST_OUTPUT_ISSUE_271.md.

Please run in CI/local runner to validate full pass and confirm coverage threshold.

Close Pr #271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant