Condition Coverage

blib/lib/Geo/OGC/Geometry.pm
Criterion Covered Total %
condition 34 120 28.3


and 3 conditions

line !l l&&!r l&&r condition
214 192 35 21 ccw($x11, $y11, $x12, $y12, $x21, $y21) * ccw($x11, $y11, $x12, $y12, $x22, $y22) <= 0 && ccw($x21, $y21, $x22, $y22, $x11, $y11) * ccw($x21, $y21, $x22, $y22, $x12, $y12) <= 0
535 2 108 95 @_ == 2 and not $_[0] =~ /^[XYZMpP]/
727 3 0 7 exists $$self{$a} and exists $$geom{$a}
933 0 0 121 $point and $point->isa('Geo::OGC::Point')
1020 0 0 2 $self->IsClosed && $self->IsSimple
1021 0 0 2 $ret and $upgrade
1077 0 0 0 $i == 0 || $i == $#{$$self{'Points'};} and $self->isa('Geo::OGC::LinearRing')
1163 0 0 0 $j < @Q and sqrt(($Q[$i][0] - $Q[$j][0]) ** 2) < $Geo::OGC::LineString::SNAP_DISTANCE_SQR
1196 11 49 0 $i < $edges - 1 and $$self{'Points'}[$i + 2]->Equals($$self{'Points'}[$i])
1198 7 87 33 $closed and $i == 0
94 24 9 $closed and $i == 0 and $j == $edges - 1
1602 169 21 17 $$p{'Y'} <= $y && $y < $$prev{'Y'} || $$prev{'Y'} <= $y && $y < $$p{'Y'} and $x < ($$prev{'X'} - $$p{'X'}) * ($y - $$p{'Y'}) / ($$prev{'Y'} - $$p{'Y'}) + $$p{'X'}
1614 0 0 0 $self->IsPointIn($point) and not $point->DistanceToLineStringSqr($self) < $Geo::OGC::LinearRing::SNAP_DISTANCE_SQR
1822 0 3 0 @{$$r2{'Geometries'};} and @{$$r2{'Geometries'};} > 1 || !$$r2{'Geometries'}[0]->isa('Geo::OGC::Point')
1828 1 0 0 @{$$r2{'Geometries'};} and @{$$r2{'Geometries'};} > 1 || !$$r2{'Geometries'}[0]->isa('Geo::OGC::Point')
1857 0 0 2 $ring and $ring->isa('Geo::OGC::LinearRing')
2168 0 0 12 $patch and $patch->isa('Geo::OGC::Polygon')
2320 0 0 26 $geometry and $geometry->isa('Geo::OGC::Geometry')

or 3 conditions

line l !l&&r !l&&!r condition
77 36 232 0 ref $package || $package
205 6 0 49 $dx1 * $dx2 < 0 or $dy1 * $dy2 < 0
499 0 0 0 ref $package || $package
1077 0 0 0 $i == 0 || $i == $#{$$self{'Points'};}
1100 0 0 0 not defined $dmin or $d < $dmin
1215 0 0 0 not defined $minx or $minx > $$p{'X'}
1216 0 0 0 not defined $miny or $miny > $$p{'Y'}
1217 0 0 0 not defined $maxx or $maxx > $$p{'X'}
1218 0 0 0 not defined $maxy or $maxy > $$p{'Y'}
1252 0 0 0 not defined $dist or $d < $dist
1259 0 0 0 not defined $dist or $d < $dist
1602 19 0 188 $$p{'Y'} <= $y && $y < $$prev{'Y'} || $$prev{'Y'} <= $y && $y < $$p{'Y'}
1622 0 0 0 $self->IsPointIn($point) or $point->DistanceToLineStringSqr($self) < $Geo::OGC::LinearRing::SNAP_DISTANCE_SQR
1822 0 0 3 @{$$r2{'Geometries'};} > 1 || !$$r2{'Geometries'}[0]->isa('Geo::OGC::Point')
1828 0 0 0 @{$$r2{'Geometries'};} > 1 || !$$r2{'Geometries'}[0]->isa('Geo::OGC::Point')
1947 0 0 0 not defined $dist or $d < $dist
1954 0 0 0 not defined $dist or $d < $dist
2284 0 0 0 not defined $dim or $d > $dim
2359 0 0 0 not defined $minx or $minx > $$min{'X'}
2360 0 0 0 not defined $miny or $miny > $$min{'Y'}
2361 0 0 0 not defined $maxx or $maxx > $$max{'X'}
2362 0 0 0 not defined $maxy or $maxy > $$max{'Y'}