Branch Coverage

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


line true false branch
27 22 223 if (my($mark) = $line =~ /^\[(\+|-)\]/ and not $processing and not $on_next and not $class->get_child($id)) { }
13 210 elsif (not $on_next and $class->trigger_check($id, $line) and $line =~ /^\[END\]$/ and $processing) { }
2 208 elsif ($on_next and not $processing) { }
123 85 elsif ($processing) { }
32 18 4 $mark eq '+' ? :
35 6 16 unless defined $title
68 12 3 if (scalar @$items)
69 10 2 if $$items[-1]{'line'} eq "\n"
86 4 11 $$meta{'toggle'} eq 'open' ? :
90 4 11 if ($$meta{'toggle'} eq 'open') { }
113 5 2 if (scalar @$items)
114 3 2 if $$items[-1]{'line'} eq "\n"