Skip to content

Test – Line Item and Metadata Validation #362

@Baskarayelu

Description

@Baskarayelu

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

  1. Fork the repo and create a branch
    git checkout -b test/line-item-metadata-validation
  2. Implement changes
    • Add tests in src/test_invoice_metadata.rs and test_types
  3. Test and commit
    • Run cargo test
    • Attach test output

Example commit message
test: line item and metadata validation

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