Branch Coverage

blib/lib/Geo/GDAL/FFI/Geometry.pm
Criterion Covered Total %
branch 46 102 45.1


line true false branch
14 0 17 unless @_
15 9 8 if (@_ == 1) { }
18 0 9 unless defined $tmp
22 0 9 unless $g
23 3 6 if $m
24 2 7 if $z
29 0 8 unless defined $tmp
30 0 8 if $sr
31 8 0 if ($format eq 'WKT')
33 0 8 if $e
42 36 20 if ($ref{$$self})
46 7 13 if ($Geo::GDAL::FFI::immutable{$$self}) { }
49 5 2 if $Geo::GDAL::FFI::immutable{$$self} == 0
66 0 5 if $mode =~ /flatten/i
78 0 36 if $Geo::GDAL::FFI::immutable{$$self}
80 4 32 if (Geo::GDAL::FFI::OGR_G_GetDimension($$self) == 0) { }
86 0 36 unless @_
87 31 5 if (ref $_[0]) { }
92 0 5 unless @_ > 1
97 0 36 if ($is3d and $ism) { }
1 35 elsif ($ism) { }
30 5 elsif ($is3d) { }
120 60 3 if $is3d
121 0 63 if $ism
122 3 60 wantarray ? :
131 12 14 if ($n == 0)
133 0 12 if $n == 0
148 0 13 unless ref $points
152 6 7 if ($n == 0)
153 0 6 unless (ref $points->[0])
183 0 0 if $Geo::GDAL::FFI::immutable{$$self}
185 0 0 unless $e
191 0 0 if $Geo::GDAL::FFI::immutable{$$self}
193 0 0 unless $e
201 10 0 if ($variant =~ /(?i)iso/) { }
217 0 0 if ($o) { }
226 0 0 unless $gml
236 0 0 unless $kml
247 0 0 if ($o) { }
256 0 0 unless $json
317 0 0 unless $geom
319 0 0 unless $self
325 0 0 unless $geom
327 0 0 unless $self
333 0 0 unless $geom
335 0 0 unless $self
341 0 0 unless $geom
343 0 0 unless $self
349 0 0 unless $geom
355 0 0 unless $geom
374 0 1 if $msg