Branch Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitNullStatements.pm
Criterion Covered Total %
branch 23 26 88.4


line true false branch
43 19 135 if ($elem->isa('PPI::Statement::Null')) { }
46 2 17 if ($self->{'_allow_perl4_semihash'} and _is_perl4_semihash($elem))
68 2 15 if ($parent->isa('PPI::Structure::For') or $parent->isa('PPI::Structure::ForLoop'))
74 7 8 if (_is_block_disambiguator($elem))
80 131 4 unless (_is_end_of_try_block($elem))
106 129 6 unless $elem->content eq ';' and Perl::Critic::Policy::CodeLayout::RequireFinalSemicolon::_elem_is_try_block($elem->parent)
121 2 9 unless $elem->isa('PPI::Structure::Block')
124 0 9 unless $elem->isa('PPI::Token::Word') and $is_try_catch_keyword{$elem->content}
147 5 10 unless $block->isa('PPI::Structure::Block')
157 3 7 if ($prev)
161 0 7 unless my $word = $block->sprevious_sibling
163 0 7 unless $word->isa('PPI::Token::Word')
191 1 3 unless $elem->location->[1] == 1