Condition Coverage

blib/lib/Perl/MinimumVersion.pm
Criterion Covered Total %
condition 141 198 71.2


and 3 conditions

line !l l&&!r l&&r condition
258 40 0 2 $explicit and $explicit > $minimum
267 11 1 30 $syntax and $syntax > $minimum
289 0 0 0 $explicit and $explicit > $minimum
399 48 2 1 defined $limit and not &_INSTANCE($limit, 'version')
617 61 2 29 $v and $v > ($version || 0)
658 493 12 2 $_[1]->isa('PPI::Statement::Include') and $_[1]->pragma eq 'experimental'
668 4 0 1 $v and $v > ($version || 0)
698 0 0 3 $v and $v > ($version || 0)
717 0 0 14 $v and $v > ($version || 0)
723 38 10 4 $version and $version eq '5.000'
736 1 0 3 $next->content eq '@' and 5.012 > ($version || 0)
1 0 0 $next->content eq '$' and 5.014 > ($version || 0)
744 20 1 7 $next->raw_type eq '@' and 5.012 > ($version || 0)
7 0 14 $next->raw_type eq '$' and 5.014 > ($version || 0)
761 7 10 21 $version and $version == 5.014
878 2 0 5 scalar @arguments == 3 and scalar @{$arguments[2];} == 1
880 2 0 3 $arg3->isa('PPI::Token::Word') and $arg3->content eq 'undef'
899 2 0 4 $arg3->isa('PPI::Token::Cast') and $arg3->content eq '\\'
912 311 38 11 $elem->isa('PPI::Token::Word') and $elem eq 'exists'
349 1 10 $elem->isa('PPI::Token::Word') and $elem eq 'exists' and is_function_call($elem)
39 0 10 $elem->isa('PPI::Token::Word') and $elem eq 'exists' and is_function_call($elem) and $elem = first_arg($elem)
1 5 5 $elem->isa('PPI::Token::Word') and $elem eq 'exists' and is_function_call($elem) and $elem = first_arg($elem) and (_get_resulting_sigil($elem) || '') eq '&'
955 513 30 8 $_[1]->isa('PPI::Token::Operator') and $_[1]->content eq '...'
967 410 0 11 $_[1]->isa('PPI::Statement::Variable') and ($_[1]->children)[0]->isa('PPI::Token::Word')
980 0 0 0 $next->isa('PPI::Statement::Compound') and $next->schild(0)->isa('PPI::Token::Label')
991 270 25 29 $_[1]->isa('PPI::Statement') and ($_[1]->children)[0]->isa('PPI::Token::Word')
1092 4 3 1 $_[1]->module and $_[1]->module eq 'utf8'
4 3 0 $_[1]->pragma and $_[1]->pragma eq 'utf8'
1106 333 0 9 $_[1]->isa('PPI::Statement::Include') and $_[1]->type
333 2 7 $_[1]->isa('PPI::Statement::Include') and $_[1]->type and $_[1]->type eq 'use'
2 5 2 $_[1]->isa('PPI::Statement::Include') and $_[1]->type and $_[1]->type eq 'use' and $_[1]->module eq 'constant'
1183 3 0 0 $_[1]->module =~ /\bException\b/ and not $_[1]->module =~ /^(?:CPAN)::/
150 1 3 $_[1]->isa('PPI::Statement::Include') and $_[1]->module
1257 0 0 0 defined $version && length "$version"
1366 281 41 0 $_[1]->isa('PPI::Token::Word') and $_[1]->content eq 'Scalar::Util::isweak' || $_[1]->content eq 'Scalar::Util::weaken'
313 7 5 $_[1]->isa('PPI::Statement::Include') and $_[1]->module eq 'Scalar::Util'
320 2 3 $_[1]->isa('PPI::Statement::Include') and $_[1]->module eq 'Scalar::Util' and $_[1]->content =~ /[^:]\b(?:weaken|isweak)\b[^:]/
1415 0 0 2 &_CLASS($param->[0]) and $param->[0]->isa('Perl::MinimumVersion')
1429 2 7 9 defined $_[0] and "$_[0]" eq 'Perl::MinimumVersion'

or 2 conditions

line l !l condition
495 12 12 $current_reason || ''
559 1 2 $markers{$CHECKS{$check}} ||= []
617 3 28 $version || 0
668 0 1 $version || 0
698 0 3 $version || 0
717 0 14 $version || 0
736 0 3 $version || 0
0 0 $version || 0
744 1 7 $version || 0
1 13 $version || 0
756 0 6 $version || 0
859 7 2 _get_resulting_sigil($e1) or !1
912 9 1 _get_resulting_sigil($elem) || ''
978 0 0 $_[1]->snext_sibling || (return '')
1048 2 31 $Document->find_first(sub { $_[1]->symbol eq '$^E' if $_[1]->isa('PPI::Token::Magic'); } ) || (return undef)

or 3 conditions

line l !l&&r !l&&!r condition
198 0 257 0 &_INSTANCE(shift(), 'version') || 'version'->new('5.004')
349 3 1 0 not $element or $version > $max
403 3 1 1 not defined $limit or $self->{'syntax'}->version >= $limit
442 1 45 0 shift() || $self->{'default'}
796 3 1 3 _str_in_list($str, (':raw', ':crlf')) or $str =~ /[\$\@\%]/
836 1 2 0 $e1->isa('PPI::Structure::List') or $e1->isa('PPI::Token::Symbol')
863 1 1 4 $e1->isa('PPI::Token::Word') or $e1->isa('PPI::Token::Symbol')
2 2 2 $e1->isa('PPI::Token::Word') or $e1->isa('PPI::Token::Symbol') or $e1->isa('PPI::Token::Cast')
3 1 1 $e1->isa('PPI::Token::Word') or $e1->isa('PPI::Token::Symbol') or $e1->isa('PPI::Token::Cast') or $e1->isa('PPI::Structure::List')
1092 1 0 7 $_[1]->module and $_[1]->module eq 'utf8' or $_[1]->pragma and $_[1]->pragma eq 'utf8'
1183 0 0 3 $_[1]->module eq 'Tie::Array' or $_[1]->module =~ /\bException\b/ and not $_[1]->module =~ /^(?:CPAN)::/
0 0 3 $_[1]->module eq 'Tie::Array' or $_[1]->module =~ /\bException\b/ and not $_[1]->module =~ /^(?:CPAN)::/ or $_[1]->module =~ /\bThread\b/
0 0 3 $_[1]->module eq 'Tie::Array' or $_[1]->module =~ /\bException\b/ and not $_[1]->module =~ /^(?:CPAN)::/ or $_[1]->module =~ /\bThread\b/ or $_[1]->module =~ /^Error\b/
0 0 3 $_[1]->module eq 'Tie::Array' or $_[1]->module =~ /\bException\b/ and not $_[1]->module =~ /^(?:CPAN)::/ or $_[1]->module =~ /\bThread\b/ or $_[1]->module =~ /^Error\b/ or $_[1]->module eq 'base'
0 0 3 $_[1]->module eq 'Tie::Array' or $_[1]->module =~ /\bException\b/ and not $_[1]->module =~ /^(?:CPAN)::/ or $_[1]->module =~ /\bThread\b/ or $_[1]->module =~ /^Error\b/ or $_[1]->module eq 'base' or $_[1]->module eq 'Errno'
1366 2 1 38 $_[1]->content eq 'Scalar::Util::isweak' || $_[1]->content eq 'Scalar::Util::weaken'
1389 2 2 0 $_[1]->symbol eq '$!' or $_[1]->symbol eq '$^R'