Branch Coverage

blib/lib/Markdent/Parser/BlockParser.pm
Criterion Covered Total %
branch 73 92 79.3


line true false branch
140 0 2259 if ($self->debug and pos ${$text;})
146 906 1353 if (${$text;} =~ / \G \p{Space}* \z /cgx)
151 0 1353 if (defined $last_pos and $last_pos == $current_pos)
168 731 11032 if $self->$meth($text)
181 1263 90 unless $self->_list_level
193 90 1263 if $self->_list_level
206 1242 14 unless ${$text;} =~ / \G
218 0 14 unless defined $html
220 0 14 if $self->debug
236 1323 3 unless ${$text;} =~ / \G
247 0 3 if $self->debug
277 1280 43 unless ${$text;} =~ / \G
285 0 43 if $self->debug
313 1261 19 unless ${$text;} =~ / \G
318 13 6 substr($3, 0, 1) eq '=' ? :
320 0 19 if $self->debug
363 1236 6 unless ${$text;} =~ / \G
368 0 6 if $self->debug
382 1240 21 unless ${$text;} =~ / \G
413 0 21 if $self->debug
456 3 54 if ($in_regex and not $line =~ /$regex/) { }
5 98 elsif ($line =~ /$regex/ and not $in_regex) { }
465 8 49 if ($new_chunk)
466 8 0 if @chunk
474 21 0 if @chunk
497 1098 142 unless ${$text;} =~ / \G
510 0 142 if $self->debug
541 98 1970 if ($self->_list_level) { }
565 1059 39 unless ${$text;} =~ / \G
590 7 32 $bullet =~ /\d/ ? :
592 0 39 if $self->debug
622 36 77 if ($line =~ /^$Bullet/ and @chunk)
632 39 0 if @chunk
648 20 55 $type eq 'OrderedList' ? :
659 0 75 if $self->debug
665 39 36 if ($item eq $items[-1]) { }
6 30 elsif ($item =~ /^$Markdent::Parser::BlockParser::EmptyLine\z/m) { }
666 5 34 if (@items > 1 and $items[-2] =~ /^$Markdent::Parser::BlockParser::EmptyLine\z/m) { }
669 0 5 if $self->debug
680 0 6 if $self->debug
706 10 68 unless ${$text;} =~ / \G
728 0 68 if $self->debug
733 6 62 if $self->_list_item_is_paragraph
738 6 62 if $self->_list_item_is_paragraph
751 620 350 unless ${$text;} =~ / \G
773 0 350 if $self->debug