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 1346 680 20 $mode eq "reference" and $type eq 'reference' || $type eq 'collapsed'
680 14 6 $mode eq "reference" and $type eq 'reference' || $type eq 'collapsed' and $+{'space'} =~ /^ ?(?:\n[ \t]*)?$/u
333 3404 193 123 length $n->{'content'} <= $search_start and @{$tree->{'children'};} > $cur_child + 1
3597 123 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 2331 29306 48160 not $not_root and $i == 0
31637 5315 42845 not $not_root and $i == 0 and $j == 0
498 2331 29260 48206 not $not_root and $i == $#{$$tree{"children"};}
31591 6118 42088 not $not_root and $i == $#{$$tree{"children"};} and $j == $#hard_breaks
561 6128 7819 27232 $succ_type ne 'space' && ($succ_type ne 'punct' || $pred_type ne 'none')
562 8393 6651 26135 $pred_type ne 'space' && ($pred_type ne 'punct' || $succ_type ne 'none')
575 2381 115 6295 $is_left && (!$is_right || $pred_type eq 'punct')
576 2664 115 6012 $is_right && (!$is_left || $succ_type eq 'punct')
599 75654 3352 3352 $index == 0 and $side eq "left"
600 72976 2951 3079 $index == $#{$$tree{"children"};} and $side eq "right"
604 71129 744 4054 $node->{'type'} ne "text" and $node->{'type'} ne "literal"
628 1463 2710 11638 $_->{'can_open'} and $_->{'delim'} eq $c{'delim'}

or 3 conditions

line l !l&&r !l&&!r condition
156 3638 8544 81225 $node->{'type'} eq "code" or $node->{'type'} eq "link"
270 15 5 680 $type eq 'reference' || $type eq 'collapsed'
333 82 30 11 $tree->{'children'}[$cur_child + 1]{'type'} eq 'html' || $tree->{'children'}[$cur_child + 1]{'type'} eq 'link'
544 41171 6 2 not exists $max_delim_run_length{$d->{'delim'}} or $d->{'len'} <= $max_delim_run_length{$d->{'delim'}}
710 10309 0 1329 !($o->{'can_close'} || $c->{'can_open'}) || ($o->{'orig_len'} + $c->{'orig_len'}) % 3 != 0 || $o->{'orig_len'} % 3 == 0 && $c->{'orig_len'} % 3 == 0