Skip to content

test: add fuzz tests and increase coverage#22

Merged
dadadave80 merged 2 commits into
devfrom
test/foundry-fuzz-and-coverage
Apr 3, 2026
Merged

test: add fuzz tests and increase coverage#22
dadadave80 merged 2 commits into
devfrom
test/foundry-fuzz-and-coverage

Conversation

@dadadave80
Copy link
Copy Markdown
Member

@dadadave80 dadadave80 commented Apr 3, 2026

Summary

  • Add 31 foundry fuzz tests across Factory, Marketplace, CheckIn, and Ticket test files covering fee calculations, payment accounting, refund timing, buyer accumulation, and ticket creation validation
  • Add 52 coverage tests for previously untested revert paths and edge cases including empty name/URI, sold out, max tickets per user, purchase time checks, admin access control, ERC721 interface support, and royalty info

Test plan

  • All 176 tests pass (forge test)
  • Fuzz tests run 10,000 iterations each per foundry.toml config
  • Verify CI passes on remote

@dadadave80 dadadave80 merged commit 6332b43 into dev Apr 3, 2026
3 checks passed
@dadadave80 dadadave80 deleted the test/foundry-fuzz-and-coverage branch April 3, 2026 22:40
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