Skip to content

Add property-based fuzz tests for split math invariants #247

@Baskarayelu

Description

@Baskarayelu

Description

Build property-based tests to prove split calculations preserve total amount and remain bounded across randomized inputs.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Cover random totals, random valid percentages, and adversarial edges

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b test/remit-split-property-fuzzing
  • Implement changes
  • Write contract: remittance_split/src/lib.rs
  • Write comprehensive tests: remittance_split/tests/fuzz_tests.rs
  • Add documentation: remittance_split/README.md
  • Include NatSpec-style comments
  • Validate security assumptions

Test and commit

  • Run tests: cargo test -p remittance_split
  • Cover edge cases
  • Include test output and security notes

Example commit message

test: add property-based fuzz tests for split invariants

Guidelines

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea:remittance-splitRemitWise contracts labelcontractsRemitWise contracts labelfuzzingRemitWise contracts labelpriority:highRemitWise contracts labelqualityRemitWise contracts labeltype:testRemitWise contracts label

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions