Branch Coverage

blib/lib/Imager/SkinDetector.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
16 0 0 unless %opt
21 0 0 unless (defined $file or defined $url)
29 0 0 if (defined $url and $url =~ m[^https?://])
33 0 0 unless ($self->open('file', $file))
73 0 0 if ($@)
78 0 0 unless ($pic)
94 0 0 unless $img
109 0 0 unless $color = $img->getpixel('x', $x, 'y', $y)
121 0 0 unless ($total)
137 0 0 if $_ > $max
138 0 0 if $_ < $min
157 0 0 if ($max == 0) { }
163 0 0 if ($s1 == 0) { }
168 0 0 if ($r == $max)
171 0 0 if ($g == $max)
174 0 0 if ($b == $max)
180 0 0 if $h1 < 0
197 0 0 if ($h >= 5 and $h <= 40 and $v > 60)
208 0 0 unless $img
232 0 0 if ($r < 5 and $g < 5 and $b < 5)
240 0 0 if ($pixel_diff > $pixel_diff_threshold)
253 0 0 if ($total_samples == 0)
273 0 0 if $_ > $value_threshold
283 0 0 unless $img
298 0 0 if ($color and is_skin($color))
306 0 0 if ($total_samples == 0)