Branch Coverage

blib/lib/Perl/Critic/Policy/CodeLayout/RequireFinalSemicolon.pm
Criterion Covered Total %
branch 55 58 94.8


line true false branch
51 10 88 if (_block_is_hash_constructor($elem) != 0)
60 0 82 unless ($block_last->isa("PPI::Statement"))
64 11 71 if (_elem_statement_no_need_semicolon($block_last))
73 10 61 if (_elem_is_semicolon($bstat_last))
79 61 0 if ($self->{'_except_expression_blocks'})
80 13 48 if (_block_is_expression($elem))
89 46 2 if ($self->{'_except_same_line'} and $elem->complete)
90 25 21 unless (_newline_in_following_sibling($block_last))
178 7 102 if (_block_has_multiple_statements($elem))
183 95 7 if (my $prev = $elem->sprevious_sibling)
185 6 89 if ($prev->isa("PPI::Structure::Condition"))
189 9 80 if ($prev->isa("PPI::Token::Cast"))
190 8 1 if ($prev eq '\\') { }
198 0 80 if ($prev->isa("PPI::Token::Operator"))
202 2 78 unless ($prev->isa("PPI::Token::Word"))
207 49 29 if ($word_is_block{$prev})
214 3 26 unless ($prev = $prev->sprevious_sibling)
223 25 1 if ($prev eq "sub")
239 2 4 if ($parent->isa("PPI::Statement::Compound") and $parent = $parent->parent and $parent->isa('PPI::Structure::List') || $parent->isa('PPI::Structure::Constructor'))
289 7 101 if ($count >= 2)
331 21 31 if ($elem =~ /\n/)
345 25 36 if (my $next = $elem->snext_sibling)
346 6 10 if ($next->isa("PPI::Token::Word") and $postfix_loops{$next})
388 16 658 if ($e == $elem)
392 11 647 if (_elem_is_use_try($e))
404 642 16 unless $elem->isa("PPI::Statement::Include") and $elem->type eq "use"
427 5 28 if ($elem->isa('PPI::Token::Word')) { }
3 25 elsif ($elem->isa('PPI::Token::QuoteLike::Words')) { }
5 20 elsif ($elem->isa('PPI::Token::Quote')) { }