Branch Coverage

blib/lib/Math/Geometry/Voronoi.pm
Criterion Covered Total %
branch 45 56 80.3


line true false branch
35 0 6195 unless $$a[1] <=> $$b[1]
86 3111 160 if ($b)
89 1733 1378 if $self->vert_inside_bounds(@$v1)
90 2139 972 if $self->vert_inside_bounds(@$v2)
93 3084 187 if ($a)
96 922 2162 if $self->vert_inside_bounds(@$v1)
97 1751 1333 if $self->vert_inside_bounds(@$v2)
116 1 1 if (my $norm = $args{'normalize_vertices'})
123 0 3271 if $v1 == -1 and $v2 == -1
129 3260 11 if (my $norm = $args{'normalize_vertices'})
133 3258 13 if $v1 != -1
134 3258 13 if $v2 != -1
136 13 3258 if ($v1 == -1)
137 0 13 unless @$ivs and $lat2 + 0 == $lat2 and $lon2 + 0 == $lon2
138 7 6 if (cmp_verts([$lat2, $lon2], $$ivs[0]) > 0) { }
0 6 elsif (cmp_verts([$lat2, $lon2], $$ivs[1]) > 0) { }
146 13 3252 if ($v2 == -1)
147 0 13 unless @$ivs and $lat1 + 0 == $lat1 and $lon1 + 0 == $lon1
148 3 10 if (cmp_verts([$lat1, $lon1], $$ivs[1]) < 0) { }
0 10 elsif (cmp_verts([$lat1, $lon1], $$ivs[0]) < 0) { }
158 0 3255 if grep {$_ + 0 != $_;} $lat1, $lon1, $lat2, $lon2
162 3255 0 if ($p1 != -1 and $p2 != -1)
172 0 1101 unless $stack
174 1 1100 unless @$stack >= 2
178 2985 0 if (not grep({$$_[1] == $$this[1] if $$_[0] == $$this[0];} @poly) and $$this[0] + 0 == $$this[0] and $$this[1] + 0 == $$this[1])
179 4002 19000 if $$_[0] == $$this[0]
185 3505 0 if (not grep({$$_[1] == $$this[3] if $$_[0] == $$this[2];} @poly) and $$this[2] + 0 == $$this[2] and $$this[3] + 0 == $$this[3])
186 3548 22439 if $$_[0] == $$this[2]