You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Inserting comments is problematic. Perl comments are terminated with a line break. Inserting line breaks screws up the line numbers in error messages and warnings.
Is it not possible to achieve 100% coverage by testing the variety of signatures accepted? IMO this is how coverage should be working anyway though I suppose it is technically testing Kavorka rather than the code in question
Migrated from rt.cpan.org #99115 (status was 'stalled')
Requestors:
From [email protected] on 2014-09-24 15:33:32
:
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
The text was updated successfully, but these errors were encountered: