KamoCRM

Actually exercise the terminal guards

Testkamo-shared-library
Shipped
26 ஆகஸ்ட், 2026 அன்று 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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing