Branch Coverage

blib/lib/Text/Livedoor/Wiki/Plugin/Block/Table.pm
Criterion Covered Total %
branch 44 44 100.0


line true false branch
16 58 120 if (($row) = $line =~ /^\|(.*)(\||\|\s)$/) { }
7 113 elsif (($row) = $line =~ /^,(.*)(,|,\s)$/) { }
17 41 17 unless ($on_next)
27 5 2 unless ($on_next)
54 13 187 if $$col{$_} and $$col{$_} > 1
63 10 90 if $style
65 82 18 $text ne '' ? :
86 9 100 if ($$row[$j]{'inline'} =~ /^\^$/) { }
91 8 92 if ($$rowspan{$j + $colspan_total}{'cnt'})
99 100 9 unless $$remove_cell{$j}
119 6 109 if ($cell =~ /^>$/)
124 2 107 if ($cell =~ /^\!/) { }
3 104 elsif ($cell =~ /^~/) { }
134 7 102 if ($on_force_th)
140 17 109 if (my($style, $value, $left) = $cell =~ /^(BGCOLOR|COLOR|SIZE|LEFT|CENTER|RIGHT)\s*(?:\(([A-Za-z0-9\-\#]*)\))?\s*:\s*(.*)/i) { }
143 5 12 if ($style eq 'bgcolor') { }
4 8 elsif ($style =~ /left|center|right/) { }
3 5 elsif ($style eq 'size') { }
163 5 104 if ($colspan > 1)
185 2 16 if $cell =~ /^>$/
186 2 14 if $cell =~ /^\^/
191 2 14 if (my($style, $value, $left) = $cell =~ /^(BGCOLOR|COLOR|SIZE|LEFT|CENTER|RIGHT)\s*(?:\(([A-Za-z0-9\-\#]*)\))?\s*:\s*(.*)/i) { }