Branch Coverage

blib/lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitDeleteOnArrays.pm
Criterion Covered Total %
branch 12 14 85.7


line true false branch
28 18 24 if $elem ne 'delete'
29 3 21 unless is_function_call($elem)
32 0 21 unless $ppi_arg
35 0 21 unless $subscr
37 12 9 if ($subscr->start->content eq '[')
52 26 5 if ($token->isa('PPI::Structure::Subscript') or $i == 2 and $token->isa('PPI::Structure::Constructor') and $$arg[$i - 2]->isa('PPI::Token::Cast'))
65 4 9 unless $token->isa('PPI::Token::Cast') or $token->isa('PPI::Token::Symbol') or $token->isa('PPI::Structure::Block') or $token->isa('PPI::Token::Operator') and $token->content eq '->'