New features:
- Executable line excluders: exclude lines you don't want to enforce coverage for (#67)
- register via
Config::addExecutableLineExcluder() - prepared
IgnoreThrowNewExceptionLineExcluderallows excluding e.g. allthrow new LogicException(...)lines - honored by both
checkandpatch-coveragecommands - excluded lines are rendered with gray background in
checkoutput
- register via
// coverage-guard.php
use ShipMonk\CoverageGuard\Config;
use ShipMonk\CoverageGuard\Excluder\IgnoreThrowNewExceptionLineExcluder;
$config = new Config();
$config->addExecutableLineExcluder(new IgnoreThrowNewExceptionLineExcluder([
LogicException::class,
]));
return $config;