Condition Coverage

blib/lib/Markdown/Perl/BlockParser.pm
Criterion Covered Total %
condition 161 177 90.9


and 3 conditions

line !l l&&!r l&&r condition
164 5746 10 133 @{$this->{'blocks_stack'};} and $this->{'blocks_stack'}[-1]{'block'}{'type'} eq "list_item"
185 20296 87 5452 $list->{'type'} eq 'list' && $list->{'style'} eq $item->{'style'} && $list->{'marker'} eq $item->{'marker'}
278 1852 18101 18948 defined $r and $r > 0
348 14625 18 562 @{$this->{'blocks_stack'};} and $this->{'blocks_stack'}[-1]{'block'}{'type'} eq "list_item"
356 44730 103120 522 $this->get_use_setext_headings and _do_setext_heading($this)
36610 104793 5016 $this->get_use_fenced_code_blocks and _do_fenced_code_block($this)
53331 54208 7 $this->get_use_table_blocks and _do_table_block($this)
444 521 0 1 $m eq "single_line" and @{$p;} > 1
520 0 1 $m eq "break" and $l =~ /$thematic_break_re/u
519 19 8516 1588 $f eq "`" and index($+{'info'}, "`") != -1
552 404 4635 3496 not $end_fence_seen and $this->get_fenced_code_blocks_must_be_closed
574 68769 69797 23 not @{$this->{'paragraph'};} and $l =~ /^\ {0,3} (?: $html_open_tag_re | $html_close_tag_re ) [ \t]* $ /ux
673 4260 1155 6 @{$this->{'blocks_stack'};} && $this->{'blocks_stack'}[-1]{'block'}{'type'} eq 'list_item'
7493 6 5415 $mode eq "within_list" and not @{$this->{'blocks_stack'};} && $this->{'blocks_stack'}[-1]{'block'}{'type'} eq 'list_item'
677 12 7460 27 $mode eq "strict" and $text eq '' || $type eq 'ol' && $digits != 1
681 254 18612 0 $text ne "" and $text_indent == 0
689 21761 1391 287 $first_line_blank and /^[ \t]*$/u
725 15974 2716 176 $this->_list_match($item) && $this->{'last_line_was_blank'}
858 28488 9067 16660 $i and not $this->get_table_blocks_can_interrupt_paragraph
862 0 12727 9067 $m eq "loose" and $i
920 3124 31 668 $m eq 'strict' || $m eq 'loose' && $i || @headers == 1 and not $has_pipe
925 3112 34 9 $has_pipe &&= defined $1
937 8 1 0 $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 1 2 $m ne "lax" and not $has_pipe and &min(map({length $_;} @separators)) < 2
948 2 2 7 $has_pipe &&= defined $1
949 7 3 1 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 1053 94 $e // ""
420 485 105 $2 // ""
718 9017 9849 $digits // 1

or 3 conditions

line l !l&&r !l&&!r condition
84 111431 3785 12881 $e // ($this->get_force_final_new_line ? "\n" : "")
162 54574 33247 37740 @{$this->{'paragraph'};} or $force_loose_test
195 59 181 2320 $this->{'blocks'}[-1]{'loose'} ||= $block->{'loose'}
356 590 522 147850 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this)
522 292 147558 _do_atx_heading($this) or $this->get_use_setext_headings and _do_setext_heading($this) or _do_thematic_break($this)
814 1139 146419 _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)
1431 5016 141403 _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)
5039 2767 138613 _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)
7853 11884 126682 _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)
14698 18866 107816 _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)
30750 74 107742 _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)
18940 196 107546 _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)
270 7 107539 _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)
7 107539 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 803 0 784 not @{$this->{'paragraph'};} or indent_size($this->{'paragraph'}[0]) >= 4
803 262 522 not @{$this->{'paragraph'};} or indent_size($this->{'paragraph'}[0]) >= 4 or $this->{'is_lazy_continuation'}
481 72290 74129 1139 @{$this->{'paragraph'};} or not $l =~ /$indented_code_re/u
677 75 23 7389 $text eq '' || $type eq 'ol' && $digits != 1
685 2490 294 16082 $first_line_blank || indented(5, $text)
702 6183 3427 12911 !/$list_item_re/u && $this->_test_lazy_continuation($_) || $_ eq ''
718 9017 9849 0 $symbol // $marker
769 54548 50344 2850 @{$this->{'paragraph'};} or not $l =~ /^ {0,3}\[/u
862 15761 9067 12727 $m eq "strict" or $m eq "loose" and $i
920 75 258 3124 $m eq 'strict' || $m eq 'loose' && $i || @headers == 1
937 0 1 8 $m eq 'strict' || $m eq 'loose' && $i || @headers == 1
1000 17369 3009 1352 !@{$this->{'blocks_stack'};} || $this->{'blocks_stack'}[-1]{'block'}{'type'} ne 'quotes'