Skip to content

tests: assert event field counts; add helper and constants (fixes #346)#373

Merged
Chucks1093 merged 6 commits into
accesslayerorg:mainfrom
T-kesh:issue-346-assert-event-field-count
May 30, 2026
Merged

tests: assert event field counts; add helper and constants (fixes #346)#373
Chucks1093 merged 6 commits into
accesslayerorg:mainfrom
T-kesh:issue-346-assert-event-field-count

Conversation

@T-kesh
Copy link
Copy Markdown
Contributor

@T-kesh T-kesh commented May 30, 2026

Added a new event test helper that asserts emitted event payloads contain exactly the documented number of fields, and introduced named constants for expected field counts in events.rs. Updated two existing event tests in events.rs to use the helper for regression coverage of registration and buy event payloads, improving indexer safety by catching accidental schema changes.
closes #346

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@T-kesh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit bc339d9 into accesslayerorg:main May 30, 2026
1 check passed
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.

Add helper for asserting event field count matches expected schema

2 participants