Actually exercise the terminal guards

Testkamo-shared-library
Shipped
August 26, 2026 at 7:25 PM UTC
Author
Kamo
Commit
31a7608

The test that shipped with them asserted only that an ACCEPTED quote reports itself terminal — true before the guards existed and still true if both were deleted. D4's fix had zero coverage. cancel() and revise() guard after requireQuote, so reaching them needs a repository; a Proxy returning one quote is cheaper than stubbing an interface that size, and throwing on any other method means a future change that reaches a second repository fails by name rather than by NPE. Verified by removing the cancel guard and watching this fail.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing