blib/lib/Perl/Critic/Utils/PPI.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 21 | 28.5 |
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 | 81 | 0 | $element and !is_ppi_simple_statement($element) || $element->parent && $element->parent->isa('PPI::Structure::List') |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
106 | 0 | 0 | 0 | $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 | 81 | 0 | 0 | !is_ppi_simple_statement($element) || $element->parent && $element->parent->isa('PPI::Structure::List') |