Condition Coverage

blib/lib/Markdown/Perl/Inlines.pm
Criterion Covered Total %
condition 61 63 96.8


and 3 conditions

line !l l&&!r l&&r condition
270 1389 710 28 $mode eq "reference" and $type eq 'reference' || $type eq 'collapsed'
710 19 9 $mode eq "reference" and $type eq 'reference' || $type eq 'collapsed' and $+{'space'} =~ /^ ?(?:\n[ \t]*)?$/u
333 3523 206 114 length $n->{'content'} <= $search_start and @{$tree->{'children'};} > $cur_child + 1
3729 114 0 length $n->{'content'} <= $search_start and @{$tree->{'children'};} > $cur_child + 1 and $tree->{'children'}[$cur_child + 1]{'type'} eq 'html' || $tree->{'children'}[$cur_child + 1]{'type'} eq 'link'
495 2395 28965 47920 not $not_root and $i == 0
31360 5408 42512 not $not_root and $i == 0 and $j == 0
498 2395 28751 48134 not $not_root and $i == $#{$$tree{"children"};}
31146 6204 41930 not $not_root and $i == $#{$$tree{"children"};} and $j == $#hard_breaks
561 6150 7934 26793 $succ_type ne 'space' && ($succ_type ne 'punct' || $pred_type ne 'none')
562 8188 6816 25873 $pred_type ne 'space' && ($pred_type ne 'punct' || $succ_type ne 'none')
575 2212 109 6182 $is_left && (!$is_right || $pred_type eq 'punct')
576 2607 109 5787 $is_right && (!$is_left || $succ_type eq 'punct')
599 75042 3356 3356 $index == 0 and $side eq "left"
600 72545 2857 2996 $index == $#{$$tree{"children"};} and $side eq "right"
604 70863 656 3883 $node->{'type'} ne "text" and $node->{'type'} ne "literal"
628 1489 2647 11436 $_->{'can_open'} and $_->{'delim'} eq $c{'delim'}

or 3 conditions

line l !l&&r !l&&!r condition
156 3803 8134 80638 $node->{'type'} eq "code" or $node->{'type'} eq "link"
270 21 7 710 $type eq 'reference' || $type eq 'collapsed'
333 71 34 9 $tree->{'children'}[$cur_child + 1]{'type'} eq 'html' || $tree->{'children'}[$cur_child + 1]{'type'} eq 'link'
544 40869 6 2 not exists $max_delim_run_length{$d->{'delim'}} or $d->{'len'} <= $max_delim_run_length{$d->{'delim'}}
710 10227 0 1209 !($o->{'can_close'} || $c->{'can_open'}) || ($o->{'orig_len'} + $c->{'orig_len'}) % 3 != 0 || $o->{'orig_len'} % 3 == 0 && $c->{'orig_len'} % 3 == 0