Condition Coverage

blib/lib/Perl/PrereqScanner/Scanner/Perl5.pm
Criterion Covered Total %
condition 32 43 74.4


and 3 conditions

line !l l&&!r l&&r condition
72 58 3 108 not $version and $node->type =~ /\A(?:require|use)\z/
85 57 17 34 $next and $next->class eq "PPI::Statement"
89 3 4 27 defined $list and $op->class eq "PPI::Token::Operator"
7 0 27 defined $list and $op->class eq "PPI::Token::Operator" and $op->content eq "->"
4 0 27 defined $list and $op->class eq "PPI::Token::Operator" and $op->content eq "->" and $method->content eq "VERSION"
0 3 24 defined $list and $op->class eq "PPI::Token::Operator" and $op->content eq "->" and $method->content eq "VERSION" and !defined($too_much) || $too_much->content eq ';'
3 3 21 defined $list and $op->class eq "PPI::Token::Operator" and $op->content eq "->" and $method->content eq "VERSION" and !defined($too_much) || $too_much->content eq ';' and $invocant->content eq $node->module
6 0 21 defined $list and $op->class eq "PPI::Token::Operator" and $op->content eq "->" and $method->content eq "VERSION" and !defined($too_much) || $too_much->content eq ';' and $invocant->content eq $node->module and $list->class eq "PPI::Structure::List"
3 0 21 defined $list and $op->class eq "PPI::Token::Operator" and $op->content eq "->" and $method->content eq "VERSION" and !defined($too_much) || $too_much->content eq ';' and $invocant->content eq $node->module and $list->class eq "PPI::Structure::List" and $list->braces eq "()"
0 0 21 defined $list and $op->class eq "PPI::Token::Operator" and $op->content eq "->" and $method->content eq "VERSION" and !defined($too_much) || $too_much->content eq ';' and $invocant->content eq $node->module and $list->class eq "PPI::Structure::List" and $list->braces eq "()" and $list->schildren == 1
102 0 3 18 $exp->class eq "PPI::Statement::Expression" and $exp->schildren == 1
107 0 0 6 $arg->isa("PPI::Token::Quote") and $arg->can("literal")

or 2 conditions

line l !l condition
45 133 132 $ppi_doc->find('Statement::Include') || []
72 18 90 $self->_check_required_version($node) || 0

or 3 conditions

line l !l&&r !l&&!r condition
89 0 24 3 !defined($too_much) || $too_much->content eq ';'