Condition Coverage

blib/lib/Perl/Version/Bumper.pm
Criterion Covered Total %
condition 120 154 77.9


and 3 conditions

line !l l&&!r l&&r condition
125 0 53729 58240 exists $feature{$_}{'known'} && $version_num >= $feature{$_}{'known'}
27027 23174 61768 exists $feature{$_}{'enabled'} && $version_num >= $feature{$_}{'enabled'}
84942 20274 6753 exists $feature{$_}{'disabled'} && $version_num >= $feature{$_}{'disabled'}
190 17493 0 0 $token->isa("PPI::Token::Word") and $token eq "undef"
17493 0 0 $token->isa("PPI::Token::Word") and $token eq "undef" and $tokens[0] ? $tokens[0] ne "=>" : Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.42.0/B/Deparse.pm line 5762.
193 0 0 0 $token eq '{' && $prev && $prev eq 'sub'
212 0 0 0 $subscript and $subscript->isa("PPI::Structure::Subscript")
239 17493 0 0 exists $constants->{$token} && ($next_sibling ? $next_sibling ne '=>' : !0)
241 0 0 225 $clone->simplify && $clone->can('literal')
284 114 114 114 !$_->isa('PPI::Token::Comment') && $_ ne "\n"
9636 2211 114 $keep_comments and grep $_->isa("PPI::Token::Comment"), @to_drop
300 47364 27846 1458 $elem->isa("PPI::Statement::Include") and $elem->module eq $module
75210 264 1194 $elem->isa("PPI::Statement::Include") and $elem->module eq $module and $elem->type eq $type
28110 0 1194 $elem->isa("PPI::Statement::Include") and $elem->module eq $module and $elem->type eq $type and not $elem->arguments
319 3046062 369708 28623 $elem->isa("PPI::Statement::Include") and $elem->module eq $module
336 578259 68106 7353 $elem->isa("PPI::Statement::Include") and $elem->version
467 123 45 123 exists $feature_in_bundle->{'known'}{$feature} and not exists $feature_in_bundle->{'disabled'}{$feature}
168 102 21 exists $feature_in_bundle->{'known'}{$feature} and not exists $feature_in_bundle->{'disabled'}{$feature} and $feature{$feature}{'compat'}{$compat} <= 0
490 333 273 108 exists $feature_in_bundle->{'known'}{$feature} and !exists $feature_in_bundle->{'enabled'}{$feature} || exists $feature{$feature}{'unfeature'}
273 0 108 exists $feature_in_bundle->{'known'}{$feature} and !exists $feature_in_bundle->{'enabled'}{$feature} || exists $feature{$feature}{'unfeature'} and $feature{$feature}{'compat'}{$compat} >= 0
508 153 561 0 not exists $feature{$feature}{'unfeature'} and exists $feature_in_bundle->{'enabled'}{$feature} || $feature{$feature}{'compat'}{$compat} < 0
557 102 507 5040 exists $feature{$_} && !exists $feature_in_bundle->{'disabled'}{$_}
578 1641 12777 13059 $old_num < $feature_enabled and $version_num >= $feature_enabled
14418 510 12549 $old_num < $feature_enabled and $version_num >= $feature_enabled and not $enabled_in_code{$feature}
13287 186 12363 $old_num < $feature_enabled and $version_num >= $feature_enabled and not $enabled_in_code{$feature} and not $disabled_in_code{$feature}
588 0 8580 579 $old_num < $feature_disabled and $version_num >= $feature_disabled
8580 3 576 $old_num < $feature_disabled and $version_num >= $feature_disabled and not $enabled_in_code{$feature}
8583 3 573 $old_num < $feature_disabled and $version_num >= $feature_disabled and not $enabled_in_code{$feature} and not $disabled_in_code{$feature}
635 8472 138 549 $insert_point->previous_sibling and $insert_point->previous_sibling->isa("PPI::Token::Whitespace")
222 51 276 $insert_point->isa('PPI::Statement::Include') && $insert_point->version
8610 276 273 $insert_point->previous_sibling and $insert_point->previous_sibling->isa("PPI::Token::Whitespace") and not $insert_point->isa('PPI::Statement::Include') && $insert_point->version
735 1275 0 0 $version_limit &&= stable_version($version_limit)

or 2 conditions

line l !l condition
625 2349 6861 $old_num //= "5.008"
655 0 2778 $env //= {}
682 3943 6383 $doc->filename // "input code"
714 2941 2941 $filename //= "input code"
739 204 1071 $versions[0] // "5.01"
743 850 425 $doc->filename // "input code"
754 1503 54 $version >= $version_limit or $version = Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.42.0/B/Deparse.pm line 5762.
779 0 425 $options->{'filename'} // "input code"

or 3 conditions

line l !l&&r !l&&!r condition
66 12858 2 0 shift() // $]
76 3865 0 0 shift() // $]
125 34741 20274 6753 !exists $feature{$_}{'disabled'} || $version_num < $feature{$_}{'disabled'}
146 3868 1 0 $args->{'version'} // stable_version($])
190 87 0 17493 $token eq "," or $token eq "=>"
272 102 11859 96 not $stmt->sprevious_sibling or $stmt->sprevious_sibling->location->[0] ne $stmt->location->[0]
481 168 0 123 exists $feature_in_bundle->{'known'}{$feature} or $feature{$feature}{'compat'}{$compat} > 0
490 93 15 273 !exists $feature_in_bundle->{'enabled'}{$feature} || exists $feature{$feature}{'unfeature'}
508 273 0 288 exists $feature_in_bundle->{'enabled'}{$feature} || $feature{$feature}{'compat'}{$compat} < 0
532 3021 942 7380 !exists $feature_in_bundle->{'enabled'}{$_} || exists $feature{$_}{'unfeature'}
601 411 0 165 @new_args == @old_args or @new_args + @keep_args == @old_args
603 30 0 135 @new_args or @keep_args
628 9108 51 51 $doc->schild(0) // $doc->child(0)
736 0 1275 0 $version_limit //= do { my(@versions) = map(eval { do { version_fmt($_->version) } }, _version_stmts($doc)); $versions[0] // "5.01" }