blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitSingleArgArraySlice.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 16 | 81.2 |
line | true | false | branch |
---|---|---|---|
26 | 0 | 20 | unless $elem->isa('PPI::Token::Symbol') |
29 | 7 | 13 | unless substr("$elem", 0, 1) eq '@' |
33 | 5 | 8 | unless $next and $next->isa('PPI::Structure::Subscript') |
37 | 2 | 6 | if @children > 1 |
40 | 0 | 6 | if @children == 0 |
47 | 1 | 5 | if @child_elements > 1 |
50 | 0 | 5 | if @children == 0 |
58 | 2 | 3 | unless $element->isa('PPI::Token::Number') |