Condition Coverage

blib/lib/Text/Textile.pm
Criterion Covered Total %
condition 23 269 8.5


and 3 conditions

line !l l&&!r l&&r condition
110 0 0 8 $$self{'css_mode'} and not exists $$self{'css'}
124 0 0 0 $$self{'css_mode'} and not exists $$self{'css'}
425 12 0 0 $sticky and defined $stickybuff
443 20 0 0 $sticky and defined $stickybuff
20 0 0 $sticky and defined $stickybuff and $block eq 'table' || $block eq 'dl'
558 0 0 0 defined $1 and $1 eq '..'
568 0 0 0 defined $1 and $1 eq '..'
598 0 0 0 $padleft || $padright and $alignment eq 'left' || $alignment eq 'right'
640 0 0 0 $padleft || $padright and $alignment eq 'left' || $alignment eq 'right'
672 0 0 0 $padleft || $padright and $alignment eq 'left' || $alignment eq 'right'
702 0 0 0 $padleft || $padright and $alignment eq 'left' || $alignment eq 'right'
722 15 0 0 defined $cite and $block eq 'bq'
748 0 0 0 $block eq 'table' and $stickybuff
0 0 0 $block eq 'dl' and $stickybuff
788 29 0 2 $buffer =~ /
811 0 35 0 not $line =~ /($Text::Textile::blocktags)/ and $line =~ /^[^<]/ || $line =~ />[^<]/ || !($line =~ /
1120 0 0 0 $$self{'flavor'} =~ /^xhtml2/ and defined $cite
0 0 0 $$self{'flavor'} =~ /^xhtml2/ and defined $cite and $cite
1150 4 0 0 $clsty and $clsty =~ /{([^}]+)}/
1156 4 0 0 $clsty and $clsty =~ /\(([A-Za-z0-9_\- ]+?)(?:#(.+?))?\)/ || $clsty =~ /\(([A-Za-z0-9_\- ]+?)?(?:#(.+?))\)/
1173 4 0 0 $clsty and $clsty =~ /(\(+)/
1177 4 0 0 $clsty and $clsty =~ /(\)+)/
1181 4 0 0 $clsty and $clsty =~ /\[(.+?)\]/
1237 0 0 0 $dt and $dd
1244 0 0 0 $dt and $dd
1272 0 0 0 $dtlang and $param =~ /\[([A-Za-z]+?)\]/
1442 0 4 0 $$self{'links'} and $$self{'links'}{$url}
1571 0 0 0 $w and $w eq '*'
1572 0 0 0 $h and $h eq '*'
1585 0 0 0 $w and $h
1593 0 0 0 $image_w and $image_h
0 0 0 $image_w and $image_h and $w || $h
1595 0 0 0 $w and not $h
0 0 0 $h and not $w
1605 0 0 0 $w and $h
1795 0 0 0 $attrs =~ /($Text::Textile::alignre)/ and length $1
1944 0 0 29 $Have_Entities and $$self{'char_encoding'}
2260 0 0 0 ${$post;} and ${$pre;}
0 0 0 ${$post;} and ${$pre;} and (my $open = substr(${$pre;}, 0, 1)) =~ /[{[]/
2262 0 0 0 $open eq '{' and $close eq '}'
0 0 0 $open eq '[' and $close eq ']'
2268 0 0 0 $open eq '{' and $close eq '}'
0 0 0 $open eq '[' and $close eq ']'

or 2 conditions

line l !l condition
14 0 8 $options{'filters'} ||= {}
15 0 8 $options{'charset'} ||= 'iso-8859-1'
72 0 0 $$self{'disable_html'} || 0
80 0 0 $$self{'head_offset'} || 0
584 0 15 $block ||= 'p'
688 0 0 $$self{'css'}{'id_footnote_prefix'} || 'fn'
985 0 0 $$self{'css'}{'id_footnote_prefix'} || 'fn'
1731 0 0 $col ||= ''
1819 0 0 $rowspans[$c] || 0
1837 0 0 $rowspan || 0

or 3 conditions

line l !l&&r !l&&!r condition
28 0 8 0 $options{'macros'} ||= $self->default_macros
443 0 0 0 $block eq 'table' || $block eq 'dl'
502 0 0 0 $params =~ /\(([A-Za-z0-9_\-\ ]+?)(?:\#(.+?))?\)/ or $params =~ /\(([A-Za-z0-9_\-\ ]+?)?(?:\#(.+?))\)/
504 0 0 0 $1 or $2
598 0 0 0 $padleft || $padright
0 0 0 $alignment eq 'left' || $alignment eq 'right'
604 0 0 0 ' ' . $$self{'css'}{"class_align_$alignment"} || $alignment
640 0 0 0 $padleft || $padright
0 0 0 $alignment eq 'left' || $alignment eq 'right'
646 0 0 0 ' ' . $$self{'css'}{"class_align_$alignment"} || $alignment
672 0 0 0 $padleft || $padright
0 0 0 $alignment eq 'left' || $alignment eq 'right'
678 0 0 0 $$self{'css'}{"class_align_$alignment"} || $alignment
698 0 15 0 $macros{$block} || $block
702 0 0 0 $padleft || $padright
0 0 0 $alignment eq 'left' || $alignment eq 'right'
708 0 0 0 ' ' . $$self{'css'}{"class_align_$alignment"} || $alignment
811 34 1 0 $line =~ /^[^<]/ || $line =~ />[^<]/ || !($line =~ /
882 0 0 0 $2 || $4
895 0 0 0 $2 || $4
1067 0 0 0 $redo ||= $last ne $text
1156 0 0 0 $clsty =~ /\(([A-Za-z0-9_\- ]+?)(?:#(.+?))?\)/ || $clsty =~ /\(([A-Za-z0-9_\- ]+?)?(?:#(.+?))\)/
1158 0 0 0 $1 or $2
1439 0 0 4 not defined $url or $url eq ''
1443 0 0 0 $title ||= $$self{'links'}{$url}{'title'}
1497 0 0 0 _halign($align) || _valign($align)
1555 0 0 0 _halign($align) || _valign($align)
1569 0 0 0 $pctw or $pcth
1593 0 0 0 $w || $h
1606 0 0 0 $pctw or $pcth
1679 0 0 0 $clsty =~ /\(([A-Za-z0-9_\- ]+?)(?:#(.+?))?\)/ or $clsty =~ /\(([A-Za-z0-9_\- ]+?)?(?:#(.+?))\)/
1681 0 0 0 $1 or $2
1754 0 0 0 $clsty =~ /\(([A-Za-z0-9_\- ]+?)(?:#(.+?))?\)/ or $clsty =~ /\(([A-Za-z0-9_\- ]+?)?(?:#(.+?))\)/
1756 0 0 0 $1 or $2
1842 0 0 0 $col =~ /\n\n/ or $col =~ /^(?:$Text::Textile::halignre|$Text::Textile::clstypadre*)* [\*\#] (?:$Text::Textile::clstypadre*|$Text::Textile::halignre)*\ /x
1904 0 0 0 $tclass or $tid
0 0 0 $tclass or $tid or $tstyle
2255 0 0 0 _valign($align) || _halign($align)
2262 0 0 0 $open eq '{' and $close eq '}' or $open eq '[' and $close eq ']'
2268 0 0 0 $open eq '{' and $close eq '}' or $open eq '[' and $close eq ']'