You can use the macros error-situation-forms and without-code-coverage to prevent generation of code coverage inside their body. For example, explicit calls to cl:error
that are not expected to happen can be marked not to be counted. The system uses these in macros that call cl:error
such as cl:etypecase
and cl:assert
.
LispWorks User Guide and Reference Manual - 20 Sep 2017