Skip to content

Test – cleanup_expired_bids Return Value and State #370

@Baskarayelu

Description

@Baskarayelu

Description
Add tests for cleanup_expired_bids: returns correct count of removed bids; get_bids_for_invoice no longer includes expired; get_ranked_bids excludes them; idempotent when called again.

Requirements and context

  • Achieve minimum 95% test coverage for cleanup_expired_bids
  • Smart contracts only (Soroban/Rust)

Suggested execution

  1. Fork the repo and create a branch
    git checkout -b test/cleanup-expired-bids-state
  2. Implement changes
    • Add tests in src/test_bid.rs or test_bid_ranking
  3. Test and commit
    • Run cargo test
    • Attach test output

Example commit message
test: cleanup_expired_bids return value and state

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions