Branch Coverage

lib/Geo/Google/PolylineEncoder.pm
Criterion Covered Total %
branch 36 48 75.0


line true false branch
98 0 10 unless UNIVERSAL::isa($points, 'ARRAY')
105 8 2 if (UNIVERSAL::isa($$points[0], 'HASH')) { }
2 0 elsif (UNIVERSAL::isa($$points[0], 'ARRAY')) { }
111 1 1 if ($self->lons_first) { }
142 0 10 if ($self->escape_encoded_points)
164 3 7 if (@$points <= 2)
225 0 16721 if ($seg_length_is_0) { }
275 4 16717 if ($r <= 0) { }
116 16601 elsif ($r >= 1) { }
294 5388 11333 if ($dist > $current_max_dist)
297 289 5099 if ($current_max_dist > $max_dist)
306 1184 1191 if ($current_max_dist > $visible_threshold)
336 1204 377 if (defined $$dists[$i] or $i == 0 or $i == @$points - 1) { }
373 10 0 if ($self->force_endpoints) { }
383 1184 377 if (defined $dist)
392 1184 0 if ($dist > $visible_threshold)
402 10 0 if ($self->force_endpoints) { }
423 0 0 if ($dist > $self->visible_threshold)
479 626 1786 if ($is_negative)
517 0 6 unless defined $encoded and $encoded ne ''
521 180 0 unless $_ < 63
522 0 6 if @out
550 706 1633 if ($result & 1)
565 498 1841 if ($result & 1)