Branch Coverage

blib/lib/Text/Livedoor/Wiki/Plugin/Function/Color.pm
Criterion Covered Total %
branch 18 18 100.0


line true false branch
10 1 16 unless scalar @$args
16 13 3 if ($color)
17 1 12 unless $color =~ /^[a-zA-Z0-9#]+$/i
21 8 7 if ($bgcolor)
22 1 7 unless $bgcolor =~ /^[a-zA-Z0-9#]+$/i
32 7 2 if (my $color = $$data{'args'}{'color'})
36 5 4 if (my $bgcolor = $$data{'args'}{'bgcolor'})
51 4 1 if (my $color = $$data{'args'}{'color'})
55 2 3 if (my $bgcolor = $$data{'args'}{'bgcolor'})