Branch Coverage

blib/lib/Perl/Critic/Policy/Variables/ProhibitUselessInitialization.pm
Criterion Covered Total %
branch 13 16 81.2


line true false branch
113 12 0 if ($elem->type eq 'my')
114 5 7 if (violates_scalar($elem) or violates_list($elem))
137 6 6 unless $c[1]->isa('PPI::Token::Symbol') and $c[1]->raw_type eq '$'
138 0 4 unless $c[2] and $c[2]->isa('PPI::Token::Operator') and $c[2] eq '='
139 2 2 unless $c[3]->isa('PPI::Token::Word') and $c[3] eq 'undef'
156 4 6 unless $c[1]->isa('PPI::Token::Symbol') and $c[1]->raw_type =~ /^[\@%]$/
157 0 6 unless $c[2] and $c[2]->isa('PPI::Token::Operator') and $c[2] eq '='
158 3 3 unless $c[3]->isa('PPI::Structure::List') and $c[3] eq '()'