Branch Coverage

blib/lib/Module/Checkstyle/Check/Block.pm
Criterion Covered Total %
branch 14 52 26.9


line true false branch
60 0 1 if ($config->get_directive($DEFAULT_STYLE))
62 0 0 if (exists $STYLE{$default_style})
71 1 0 if ($opening_curly)
72 0 1 unless is_valid_position($opening_curly)
78 0 1 if ($closing_curly)
79 0 0 unless is_valid_position($closing_curly)
85 0 1 if ($ignore_same_line)
105 0 5 if (exists $$self{$IGNORE_SAME} and $$self{$IGNORE_SAME})
108 0 0 if $opening_curly->location->[0] == $closing_curly->location->[0]
126 5 0 if ($mode)
129 0 4 unless $statement
130 0 4 unless exists $HANDLE_PARENT_STATEMENT{ref $statement}
135 4 0 if ($previous_sibling)
140 4 0 if ($mode eq 'same') { }
0 0 elsif ($mode eq 'alone') { }
141 1 3 if ($curly_on_line != $owner_on_line)
149 0 0 if ($curly_on_line - 1 != $owner_on_line)
168 0 4 if ($mode)
171 0 0 unless $statement
172 0 0 unless exists $HANDLE_PARENT_STATEMENT{ref $statement}
179 0 0 defined $last_block_statement ? :
181 0 0 if ($mode eq 'same') { }
0 0 elsif ($mode eq 'alone') { }
182 0 0 if (ref $next_statement and $next_statement->isa('PPI::Token::Word') and $closing_curly_line != $next_statement->location->[0])
192 0 0 if (ref $next_statement and $next_statement->isa('PPI::Token::Word') and $closing_curly_line == $next_statement->location->[0])
201 0 0 if (ref $previous_statement and $closing_curly_line == $previous_statement->location->[0])