Branch Coverage

blib/lib/Perl/Critic/Policy/CodeLayout/ProhibitIfIfSameLine.pm
Criterion Covered Total %
branch 11 12 91.6


line true false branch
50 14 16 unless (_compound_statement_is_if($elem))
55 0 16 if (_elems_any_separator($elem->child(0), $elem->schild(0)))
61 4 4 unless ($prev->isa('PPI::Statement::Compound') and $compound_type_is_if{$prev->type})
67 1 3 if (_elems_any_separator($prev->next_sibling, $elem))
95 19 5 if ($from == $to)
98 1 4 if ($from =~ /\n/ or $from->isa('PPI::Statement::Null'))