Condition Coverage

blib/lib/Markdown/Perl/BlockParser.pm
Criterion Covered Total %
condition 162 177 91.5


and 3 conditions

line !l l&&!r l&&r condition
164 5761 18 141 @{$this->{'blocks_stack'};} and $this->{'blocks_stack'}[-1]{'block'}{'type'} eq "list_item"
185 19700 158 5796 $list->{'type'} eq 'list' && $list->{'style'} eq $item->{'style'} && $list->{'marker'} eq $item->{'marker'}
278 1797 18461 19101 defined $r and $r > 0
348 14282 26 598 @{$this->{'blocks_stack'};} and $this->{'blocks_stack'}[-1]{'block'}{'type'} eq "list_item"
356 45092 102570 543 $this->get_use_setext_headings and _do_setext_heading($this)
37008 103960 5311 $this->get_use_fenced_code_blocks and _do_fenced_code_block($this)
53173 53878 8 $this->get_use_table_blocks and _do_table_block($this)
444 542 0 1 $m eq "single_line" and @{$p;} > 1
541 0 1 $m eq "break" and $l =~ /$thematic_break_re/u
519 19 8973 1579 $f eq "`" and index($+{'info'}, "`") != -1
552 443 4891 3658 not $end_fence_seen and $this->get_fenced_code_blocks_must_be_closed
574 68803 69396 23 not @{$this->{'paragraph'};} and $l =~ /^\ {0,3} (?: $html_open_tag_re | $html_close_tag_re ) [ \t]* $ /ux
673 4326 1155 3 @{$this->{'blocks_stack'};} && $this->{'blocks_stack'}[-1]{'block'}{'type'} eq 'list_item'
7526 3 5481 $mode eq "within_list" and not @{$this->{'blocks_stack'};} && $this->{'blocks_stack'}[-1]{'block'}{'type'} eq 'list_item'
677 9 7493 27 $mode eq "strict" and $text eq '' || $type eq 'ol' && $digits != 1
681 287 18595 0 $text ne "" and $text_indent == 0
689 22344 1325 288 $first_line_blank and /^[ \t]*$/u
725 15783 2891 208 $this->_list_match($item) && $this->{'last_line_was_blank'}
858 28201 8852 16833 $i and not $this->get_table_blocks_can_interrupt_paragraph
862 0 12456 8852 $m eq "loose" and $i
920 3212 45 675 $m eq 'strict' || $m eq 'loose' && $i || @headers == 1 and not $has_pipe
925 3198 51 8 $has_pipe &&= defined $1
937 8 1 1 $m eq 'strict' || $m eq 'loose' && $i || @headers == 1 and not $has_pipe
938 0 8 1 $m ne "lax" and @headers == 1
8 1 0 $m ne "lax" and @headers == 1 and not $has_pipe
939 0 6 3 $m ne "lax" and not $has_pipe
6 2 1 $m ne "lax" and not $has_pipe and &min(map({length $_;} @separators)) < 2
948 3 2 7 $has_pipe &&= defined $1
949 7 3 2 not defined $1 and $this->{'md'} =~ /\G (?: [ ] | > | $list_item_marker_re )/ux
967 3 0 0 @cells > @headers and $this->get_warn_for_unused_input

or 2 conditions

line l !l condition
81 1091 82 $e // ""
420 407 82 $2 // ""
718 9213 9669 $digits // 1

or 3 conditions

line l !l&&r !l&&!r condition
84 111607 3779 12973 $e // ($this->get_force_final_new_line ? "\n" : "")
162 54516 33430 37798 @{$this->{'paragraph'};} or $force_loose_test
195 59 214 2424 $this->{'blocks'}[-1]{'loose'} ||= $block->{'loose'}
356 489 543 147662 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this)
543 332 147330 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this)
875 1051 146279 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this)
1383 5311 140968 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this) or $this->get_use_fenced_code_blocks and _do_fenced_code_block($this)
5334 2717 138228 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this) or $this->get_use_fenced_code_blocks and _do_fenced_code_block($this) or _do_html_block($this)
8080 11986 126213 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this) or $this->get_use_fenced_code_blocks and _do_fenced_code_block($this) or _do_html_block($this) or _do_block_quotes($this)
14732 18882 107331 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this) or $this->get_use_fenced_code_blocks and _do_fenced_code_block($this) or _do_html_block($this) or _do_block_quotes($this) or _do_list_item($this)
30868 78 107253 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this) or $this->get_use_fenced_code_blocks and _do_fenced_code_block($this) or _do_html_block($this) or _do_block_quotes($this) or _do_list_item($this) or _do_directive_block($this)
18960 194 107059 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this) or $this->get_use_fenced_code_blocks and _do_fenced_code_block($this) or _do_html_block($this) or _do_block_quotes($this) or _do_list_item($this) or _do_directive_block($this) or _do_link_reference_definition($this)
272 8 107051 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this) or $this->get_use_fenced_code_blocks and _do_fenced_code_block($this) or _do_html_block($this) or _do_block_quotes($this) or _do_list_item($this) or _do_directive_block($this) or _do_link_reference_definition($this) or $this->get_use_table_blocks and _do_table_block($this)
8 107051 0 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this) or _do_indented_code_block($this) or $this->get_use_fenced_code_blocks and _do_fenced_code_block($this) or _do_html_block($this) or _do_block_quotes($this) or _do_list_item($this) or _do_directive_block($this) or _do_link_reference_definition($this) or $this->get_use_table_blocks and _do_table_block($this) or _do_paragraph($this)
386 1 0 0 $parser eq "YAML::PP" or $parser eq "YAML::PP::LibYAML"
435 798 0 881 not @{$this->{'paragraph'};} or indent_size($this->{'paragraph'}[0]) >= 4
798 338 543 not @{$this->{'paragraph'};} or indent_size($this->{'paragraph'}[0]) >= 4 or $this->{'is_lazy_continuation'}
481 72426 73853 1051 @{$this->{'paragraph'};} or not $l =~ /$indented_code_re/u
677 76 23 7421 $text eq '' || $type eq 'ol' && $digits != 1
685 2420 300 16162 $first_line_blank || indented(5, $text)
702 6323 3656 13152 !/$list_item_re/u && $this->_test_lazy_continuation($_) || $_ eq ''
718 9213 9669 0 $symbol // $marker
769 54596 49854 2803 @{$this->{'paragraph'};} or not $l =~ /^ {0,3}\[/u
862 15745 8852 12456 $m eq "strict" or $m eq "loose" and $i
920 68 255 3212 $m eq 'strict' || $m eq 'loose' && $i || @headers == 1
937 0 1 8 $m eq 'strict' || $m eq 'loose' && $i || @headers == 1
1000 16873 3246 1439 !@{$this->{'blocks_stack'};} || $this->{'blocks_stack'}[-1]{'block'}{'type'} ne 'quotes'