Commit ff8fe0c
test(subgraph): cover RC handlers and handleOfferStored idempotency
Previously no tests exercised the RecurringCollector data source handlers
or the immutability guard on the Offer entity. Adds matchstick coverage for
handleAgreementAccepted, handleAgreementCanceled (both canceledBy variants +
early-return), handleAgreementUpdated (early-return + field updates),
handleRCACollected (early-return + accumulation), and handleOfferStored
(first-wins + duplicate event does not halt on immutable re-write).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 36670c2 commit ff8fe0c
1 file changed
Lines changed: 460 additions & 0 deletions
0 commit comments