Condition Coverage

blib/lib/Geo/OGC/Geometry.pm
Criterion Covered Total %
condition 36 129 27.9


and 3 conditions

line !l l&&!r l&&r condition
232 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
789 2 108 95 @_ == 2 and not $_[0] =~ /^[XYZMpP]/
989 3 7 0 exists $self->{$a} and exists $geom->{$a}
1214 0 0 121 $point and $point->isa('Geo::OGC::Point')
1336 0 0 2 $self->IsClosed && $self->IsSimple
1337 0 0 2 $ret and $upgrade
1400 0 0 0 $i == 0 || $i == $#{$$self{'Points'};} and $self->isa('Geo::OGC::LinearRing')
1490 0 0 0 $j < @Q and sqrt(($Q[$i][0] - $Q[$j][0]) ** 2) < $Geo::OGC::LineString::SNAP_DISTANCE_SQR
1523 11 49 0 $i < $edges - 1 and $self->{'Points'}[$i + 2]->Equals($self->{'Points'}[$i])
1525 7 87 33 $closed and $i == 0
94 24 9 $closed and $i == 0 and $j == $edges - 1
1955 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'}
1964 0 0 0 $self->IsPointIn($point) and not $point->DistanceToLineStringSqr($self) < $Geo::OGC::LinearRing::SNAP_DISTANCE_SQR
2189 0 3 0 @{$r2->{'Geometries'};} and @{$r2->{'Geometries'};} > 1 || !$r2->{'Geometries'}[0]->isa('Geo::OGC::Point')
2195 1 0 0 @{$r2->{'Geometries'};} and @{$r2->{'Geometries'};} > 1 || !$r2->{'Geometries'}[0]->isa('Geo::OGC::Point')
2223 0 0 2 $ring and $ring->isa('Geo::OGC::LinearRing')
2552 0 0 12 $patch and $patch->isa('Geo::OGC::Polygon')
2714 0 0 26 $geometry and $geometry->isa('Geo::OGC::Geometry')

or 3 conditions

line l !l&&r !l&&!r condition
87 36 233 0 ref $package || $package
224 6 0 49 $dx1 * $dx2 < 0 or $dy1 * $dy2 < 0
743 0 0 0 ref $package || $package
1175 0 0 0 not $self->{'Points'} or @{$self->{'Points'};} == 0
1400 0 0 0 $i == 0 || $i == $#{$$self{'Points'};}
1423 0 0 0 not defined $dmin or $d < $dmin
1542 0 0 0 not defined $minx or $minx > $p->{'X'}
1543 0 0 0 not defined $miny or $miny > $p->{'Y'}
1544 0 0 0 not defined $maxx or $maxx > $p->{'X'}
1545 0 0 0 not defined $maxy or $maxy > $p->{'Y'}
1588 0 0 0 not defined $dist or $d < $dist
1595 0 0 0 not defined $dist or $d < $dist
1955 19 0 188 $p->{'Y'} <= $y && $y < $prev->{'Y'} || $prev->{'Y'} <= $y && $y < $p->{'Y'}
1972 0 0 0 $self->IsPointIn($point) or $point->DistanceToLineStringSqr($self) < $Geo::OGC::LinearRing::SNAP_DISTANCE_SQR
2189 0 0 3 @{$r2->{'Geometries'};} > 1 || !$r2->{'Geometries'}[0]->isa('Geo::OGC::Point')
2195 0 0 0 @{$r2->{'Geometries'};} > 1 || !$r2->{'Geometries'}[0]->isa('Geo::OGC::Point')
2319 0 0 0 not defined $dist or $d < $dist
2326 0 0 0 not defined $dist or $d < $dist
2542 0 0 0 not $self->{'Patches'} or @{$self->{'Patches'};} == 0
2665 0 1 2 not $self->{'Geometries'} or @{$self->{'Geometries'};} == 0
2678 0 0 0 not defined $dim or $d > $dim
2763 0 0 0 not defined $minx or $minx > $min->{'X'}
2764 0 0 0 not defined $miny or $miny > $min->{'Y'}
2765 0 0 0 not defined $maxx or $maxx > $max->{'X'}
2766 0 0 0 not defined $maxy or $maxy > $max->{'Y'}