-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description
Add tests for InvoiceMetadata: line_items (empty, one, many), line item amounts sum vs invoice amount if enforced; validate_invoice_metadata rejects invalid (e.g. negative, overflow).
Requirements and context
- Achieve minimum 95% test coverage for metadata and line items
- Smart contracts only (Soroban/Rust)
Suggested execution
- Fork the repo and create a branch
git checkout -b test/line-item-metadata-validation - Implement changes
- Add tests in
src/test_invoice_metadata.rsand test_types
- Add tests in
- Test and commit
- Run
cargo test - Attach test output
- Run
Example commit message
test: line item and metadata validation
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program