Branch Coverage

blib/lib/Markdent/Dialect/Theory/BlockParser.pm
Criterion Covered Total %
branch 57 66 86.3


line true false branch
118 8 21 unless ${$text;} =~ / \G
138 0 21 if $self->debug
143 6 15 defined $2 ? :
145 0 21 if defined $caption and $self->debug
153 0 21 if $self->debug
158 0 21 if $self->debug
165 17 4 if (defined $header)
174 17 4 if (@header)
176 1 16 unless (defined $first_header_cell_content and $first_header_cell_content =~ /\S/)
184 7 14 defined $caption ? :
187 17 4 if @header
210 166 2 length $chunk ? :
211 2 166 if ($line =~ /^$Markdent::Dialect::Theory::BlockParser::HorizontalWS*$/) { }
7 159 elsif ($self->_is_continuation_line($line)) { }
218 0 7 unless @rows
224 9 6 if (defined $cells->[$i]{'content'} and $cells->[$i]{'content'} =~ /\S/)
245 159 7 if $line =~ /(?<!\\)[|]/x
248 7 0 if $line =~ /(^|\p{SpaceSeparator}+)(?<!\\):(\p{SpaceSeparator}|$)/x
263 642 15 if (length $cell) { }
15 0 elsif (@row) { }
293 156 10 if ($cells[-1] eq '' and $line =~ /\Q$div\E$Markdent::Dialect::Theory::BlockParser::HorizontalWS*$/)
307 633 9 if (defined $cell and $cell =~ /\S/)
318 485 157 if defined $alignment
328 1 632 if $cell =~ /^\p{SpaceSeparator}{2,}.+?\p{SpaceSeparator}{2,}$/
331 481 151 if $cell =~ /\p{SpaceSeparator}{2,}$/
334 3 148 if $cell =~ /^\p{SpaceSeparator}{2,}/
358 0 159 if (&sum(map({$_->{'colspan'};} @{$row;})) == $default_cells + 1 and $row->[-1]{'colspan'} > 1)
365 480 148 if ($cell->{'alignment'}) { }
388 2 159 unless (defined $row)
404 626 2 if (defined $content)
409 6 620 if $content =~ /\n/
435 5 620 unless ${$text;} =~ / \G
445 0 620 if $self->debug