Condition Coverage

blib/lib/Perl/Critic/Policy/CodeLayout/RequireFinalSemicolon.pm
Criterion Covered Total %
condition 29 49 59.1


and 3 conditions

line !l l&&!r l&&r condition
89 0 2 46 $self->{'_except_same_line'} and $elem->complete
239 1 0 6 $parent->isa('PPI::Statement::Compound') and $parent = $parent->parent
1 4 2 $parent->isa('PPI::Statement::Compound') and $parent = $parent->parent and $parent->isa('PPI::Structure::Constructor')
305 0 0 0 $elem && $elem->isa('PPI::Statement::Null')
312 0 0 0 $elem and $elem->isa('PPI::Token::Whitespace') || $elem->isa('PPI::Token::Comment')
323 61 0 10 $elem->isa('PPI::Token::Structure') && $elem eq ';'
346 9 10 6 $next->isa('PPI::Token::Word') and $postfix_loops{$next}
357 6 49 0 $prev && $prev->isa('PPI::Token::Word') && $prefix_expressions{$prev}
370 103 5 11 $elem->isa('PPI::Statement') && ($elem = $elem->schild(0)) && $elem->isa('PPI::Token::Word') && $elem->content eq 'try' && _elem_has_preceding_use_trycatch($elem)
404 642 0 16 $elem->isa('PPI::Statement::Include') and $elem->type eq 'use'

or 2 conditions

line l !l condition
56 82 6 $elem->schild(-1) || (return)
69 71 0 $block_last->schild(-1) || (return)

or 3 conditions

line l !l&&r !l&&!r condition
96 22 1 0 $block_last->next_sibling || $block_last
107 0 5 71 $elem->isa('PPI::Statement::Compound') || $elem->isa('PPI::Statement::Sub') || $elem->isa('PPI::Statement::Given') || $elem->isa('PPI::Statement::When') || $elem->isa('PPI::Statement::End') || $elem->isa('PPI::Statement::Null') || $elem->isa('PPI::Statement::UnmatchedBrace') || _elem_is_try_block($elem)
234 7 0 0 $elem->parent || do { return 0 }
312 0 0 0 $elem->isa('PPI::Token::Whitespace') || $elem->isa('PPI::Token::Comment')
407 9 0 7 $module eq 'Try' || $module eq 'TryCatch' || $module eq 'syntax' && _syntax_has_feature($elem, 'try')