Subject: | make Kavorka generated code coverage friendly |
foo.pl:
method foo { return }
method bar($something?) { return }
method quux(:$file, Bool :$debugging = undef) { return }
__PACKAGE__->foo;
__PACKAGE__->bar;
__PACKAGE__->quux;
cover -delete ; perl -MDevel::Cover -MKavorka foo.pl ; cover
Coverage should be 100%, but is only 77% because of the extra code generated to handle signatures etc. In a larger project, this extra code is an amount of noise among the test gaps in my own code. So I propose that by default Kavorka should annotate its generated code to exclude it from coverage: http://p3rl.org/Devel::Cover#UNCOVERABLE-CRITERIA