Condition Coverage

blib/lib/Perl/Critic/Utils/PPI.pm
Criterion Covered Total %
condition 10 21 47.6


and 3 conditions

line !l l&&!r l&&r condition
129 0 1 3 $first_element and $first_element->isa("PPI::Token::Word")
1 0 3 $first_element and $first_element->isa("PPI::Token::Word") and $first_element->content eq "sub"
166 0 0 0 is_ppi_generic_statement($element) and $element->schild(0)->content =~ / \A Readonly \b /msx
168 0 0 0 $pragma = $element->pragma and $pragma eq "constant"
198 0 85 574 $element and !is_ppi_simple_statement($element) || $element->parent && $element->parent->isa('PPI::Structure::List')

or 3 conditions

line l !l&&r !l&&!r condition
106 39 0 120 $element->isa('PPI::Token::Number') || $element->isa('PPI::Token::Quote::Literal') || $element->isa('PPI::Token::Quote::Single') || $element->isa('PPI::Token::QuoteLike::Words') || ($element->isa('PPI::Token::Quote::Double') || $element->isa('PPI::Token::Quote::Interpolate')) && !($element->string =~ / (?: \A | [^\\] ) (?: \\\\)* [\$\@] /msx)
198 650 9 0 !is_ppi_simple_statement($element) || $element->parent && $element->parent->isa('PPI::Structure::List')