Branch Coverage

blib/lib/Imager/Filter/Autocrop.pm
Criterion Covered Total %
branch 32 54 59.2


line true false branch
92 0 2 if ($color) { }
93 0 0 unless UNIVERSAL::isa($color, 'Imager::Color')
97 0 2 unless defined $color
104 4 4 if ($original{$_}) { }
106 0 4 if ($crop->{$_} >= $original{$_})
112 0 4 if ($crop->{$_} <= $original{$_})
118 0 2 if $bordered == 4
119 2 0 if ($detect and ref $detect eq 'HASH') { }
122 0 0 unless my $rv = $img->crop(%{$crop;})
132 0 2 $image->getchannels < 3 ? :
135 2 36 if $outline
137 0 2 unless $outline
139 2 0 if $outline
143 2 30 if $outline
146 2 0 if ($outline)
147 0 2 if not defined $left or $pos < $left
148 0 2 if not defined $right or $rpos > $right
150 2 0 unless (defined $left and defined $right and $left == 0 and $right == $rpoint)
153 4 26 if ($outline)
154 0 4 if not defined $left or $pos < $left
155 0 4 if not defined $right or $rpos > $right
156 0 4 if defined $left and defined $right and $left == 0 and $right == $rpoint
160 2 0 if defined $right
161 2 0 if defined $bottom
173 34 6404 if $outline or defined $left and $pos >= $left
179 34 1122 if $routline or defined $right and $rpos <= $right
188 14 22740 if ($scanned->[$_] < $range->[$_][0] or $scanned->[$_] > $range->[$_][1])