Branch Coverage

blib/lib/Image/Find/Paths.pm
Criterion Covered Total %
branch 67 76 88.1


line true false branch
29 8 41 if not defined $x or length $line > $x
31 4710 751 if substr($line, $i, 1) ne ' '
112 15461 0 if (exists $contours{$p}{$h}{$x}{$𝕪} and exists $contours{$p}{$h}{$x}{$𝘆} and exists $contours{$p}{$h}{$𝘅}{$y} and exists $contours{$p}{$h}{$𝘅}{$𝘆} and exists $contours{$p}{$h}{$𝘅}{$𝕪} and exists $contours{$p}{$h}{$𝕩}{$y} and exists $contours{$p}{$h}{$𝕩}{$𝘆} and exists $contours{$p}{$h}{$𝕩}{$𝕪})
125 9 17 unless defined $count
152 11 4699 if $i->image->{$x}{$y} == 0
167 259489 264866 if $i->image->{$x}{$y} == $p
170 2570 260167 if (exists $I->{$𝘅} and exists $I->{$𝘅}{$y} and $I->{$𝘅}{$y} == $p or exists $I->{$x} and exists $I->{$x}{$𝘆} and $I->{$x}{$𝘆} == $p or exists $I->{$𝕩} and exists $I->{$𝕩}{$y} and $I->{$𝕩}{$y} == $p or exists $I->{$x} and exists $I->{$x}{$𝕪} and $I->{$x}{$𝕪} == $p)
181 11 172 unless $changed
184 2 9 if ($pixelsInPartition <= 1)
187 2 189 if $i->image->{$x}{$y} == $p
188 2 189 unless keys %{$i->image->{$x};}
242 9290 9361 if exists $P->{$𝘅} and exists $P->{$𝘅}{$y}
243 8742 10099 if exists $P->{$x} and exists $P->{$x}{$𝘆}
244 8749 10092 if exists $P->{$x} and exists $P->{$x}{$𝕪}
245 9271 9381 if exists $P->{$𝕩} and exists $P->{$𝕩}{$y}
253 0 18 unless defined $h
254 0 18 unless $h == 1
262 34915 2255 if exists $P->{$𝘅} and exists $P->{$𝘅}{$y} and !$seen->{$𝘅}{$y} || $seen->{$𝘅}{$y} > $depth
263 2445 35420 if exists $P->{$x} and exists $P->{$x}{$𝘆} and !$seen->{$x}{$𝘆} || $seen->{$x}{$𝘆} > $depth
264 33546 4012 if exists $P->{$x} and exists $P->{$x}{$𝕪} and !$seen->{$x}{$𝕪} || $seen->{$x}{$𝕪} > $depth
265 1960 35928 if exists $P->{$𝕩} and exists $P->{$𝕩}{$y} and !$seen->{$𝕩}{$y} || $seen->{$𝕩}{$y} > $depth
266 3154 34763 unless @s > 1
285 0 75843 unless @path == @search
287 37917 37926 if (not @$search) { }
293 9 37917 if ($x == $X and $y == $Y) { }
294 9 0 if not @shortestPath or @path < @shortestPath
305 37918 0 if not exists $seen{$x}{$y} or $seen{$x}{$y} > $P
315 321 37605 if not exists $seen{$x}{$𝘆} or $seen{$x}{$𝘆} > $P
316 33109 4817 if not exists $seen{$x}{$𝕪} or $seen{$x}{$𝕪} > $P
317 2628 35298 if not exists $seen{$𝘅}{$y} or $seen{$𝘅}{$y} > $P
318 60 37866 if not exists $seen{$𝕩}{$y} or $seen{$𝕩}{$y} > $P
341 3080 84863 unless $i->partitions->{$partition}{$x + $step * $dx}{$y + $step * $dy}
371 11 3 $_ > 9 ? :
107 14 substr($_, -1) ? :
852 0 1 if eval "eof(${p}::DATA)"
854 0 1 if $@
855 1 1 if $print
856 0 1 if $@