Branch Coverage

blib/lib/Image/Find/Paths.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
37 1 9 if not defined $x or length $line > $x
39 73 727 if substr($line, $i, 1) ne ' '
78 8 65 if $i->image->{$x}{$y} == 0
93 378 2454 if $i->image->{$x}{$y} == $p
96 49 2389 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)
107 8 31 unless $changed
110 2 6 if ($pixelsInPartition <= 1)
113 2 143 if $i->image->{$x}{$y} == $p
114 2 143 unless keys %{$i->image->{$x};}
161 74 143 if exists $P->{$𝘅}{$y}
162 65 152 if exists $P->{$x}{$𝘆}
163 65 152 if exists $P->{$x}{$𝕪}
164 68 149 if exists $P->{$𝕩}{$y}
178 0 140 unless @path == @search
180 66 74 if (not @$search) { }
187 0 74 if $visited{$x}{$y}
188 7 67 if ($x == $X and $y == $Y) { }
189 6 1 if not @shortestPath or @path < @shortestPath
572 0 1 if eval "eof(${p}::DATA)"
574 0 1 if $@
576 0 1 if $@