Condition Coverage

blib/lib/Geo/OGR.pm
Criterion Covered Total %
condition 62 158 39.2


and 3 conditions

line !l l&&!r l&&r condition
320 0 0 18 $arg and $arg eq 'Geo::OGR::FeatureDefn'
414 2 0 0 @_ == 1 and ref $_[0] eq 'HASH'
0 0 2 @_ and @_ % 2 == 0
420 0 2 0 $fields and ref $fields ne 'ARRAY'
440 0 0 7 &blessed($d) and $d->isa('Geo::OGR::FieldDefn')
0 0 0 &blessed($d) and $d->isa('Geo::OGR::GeomFieldDefn')
510 12 1 84 @_ == 2 and not $Geo::OGR::FieldDefn::SCHEMA_KEYS{$_[0]}
598 1 1 0 @_ == 2 and not $Geo::OGR::GeomFieldDefn::SCHEMA_KEYS{$_[0]}
682 16 20 4 @_ == 1 and ref $_[0] eq 'HASH'
1048 0 0 2 defined $_[0] and exists $defaults{$_[0]}
15 2 0 @_ % 2 == 0 and (defined $_[0] and exists $defaults{$_[0]})
1181 7 0 84 &blessed($params{'Defn'}) and $params{'Defn'}->isa('Geo::OGR::FieldDefn')
7 0 0 &blessed($_[0]) and $params{'Defn'}->isa('Geo::OGR::GeomFieldDefn')
1210 0 0 0 &blessed($_[0]) and $_[0]->isa('Geo::OGR::FieldDefn')
1241 2 0 0 @_ and @_ % 2 == 0
1301 0 0 0 &blessed($feature) and $feature->isa('Geo::OGR::Feature')
1375 0 0 0 &blessed($field) and $field->isa('Geo::OSR::SpatialReference')
1406 4 0 0 @_ and @_ % 2 == 0
1578 4 0 0 @_ == 1 and ref $_[0] eq 'HASH'
0 0 4 @_ and @_ % 2 == 0
1676 0 0 114 $field >= 0 and $field < $self->GetFieldCount
1804 0 0 11 $field >= 0 and $field < $self->GetGeomFieldCount
1809 0 0 0 $self->GetGeomFieldCount > 0 and $field eq 'Geometry'
1821 0 0 0 @_ and @_ % 2 == 0
1826 4 0 13 &blessed($geometry) and $geometry->isa('Geo::OGR::Geometry')
1827 1 12 0 $type ne 'Unknown' and $type ne $geometry->GeometryType
1839 0 4 0 $type ne 'Unknown' and $type ne $geometry->GeometryType
2145 0 0 0 @_ == 1 and ref $_[0] eq 'HASH'

or 2 conditions

line l !l condition
1866 0 0 $map->{$i} || -1

or 3 conditions

line l !l&&r !l&&!r condition
434 0 0 6 $fd->{'GeometryType'} or exists $Geo::OGR::Geometry::TYPE_STRING2INT{$fd->{'Type'}}
689 0 0 40 $param{'type'} || $param{'Type'} || $param{'GeometryType'}
690 0 0 40 $param{'srs'} || $param{'SRS'}
691 4 0 36 $param{'wkt'} || $param{'WKT'}
692 0 0 40 $param{'wkb'} || $param{'WKB'}
693 0 0 40 $param{'hexewkb'} || $param{'HEXEWKB'}
700 1 0 39 $param{'hexwkb'} || $param{'HEXWKB'}
708 1 0 39 $param{'gml'} || $param{'GML'}
709 0 0 40 $param{'geojson'} || $param{'GeoJSON'}
711 0 0 40 $param{'arc'} || $param{'Arc'}
1218 0 0 0 exists $params{'Width'} or exists $params{'Precision'}
1375 0 0 0 not defined $field or &blessed($field) and $field->isa('Geo::OSR::SpatialReference')
1432 0 0 1 $Geo::OGR::Feature::DEFNS{$self} or $Geo::OGR::Layer::DEFNS{$self}
1452 0 0 0 $Geo::OGR::Feature::DEFNS{$self} or $Geo::OGR::Layer::DEFNS{$self}
1489 0 0 12 $Geo::OGR::Feature::DEFNS{$self} or $Geo::OGR::Layer::DEFNS{$self}
1746 0 0 94 @_ == 0 or not defined $_[0]
1752 14 0 80 $type == $Geo::OGR::OFTInteger or $type == $Geo::OGR::OFTInteger64
14 13 67 $type == $Geo::OGR::OFTInteger or $type == $Geo::OGR::OFTInteger64 or $type == $Geo::OGR::OFTReal
13 13 54 $type == $Geo::OGR::OFTInteger or $type == $Geo::OGR::OFTInteger64 or $type == $Geo::OGR::OFTReal or $type == $Geo::OGR::OFTString
26 12 42 $type == $Geo::OGR::OFTInteger or $type == $Geo::OGR::OFTInteger64 or $type == $Geo::OGR::OFTReal or $type == $Geo::OGR::OFTString or $type == $Geo::OGR::OFTBinary
1816 12 0 13 ref $_[0] eq '' || @_ > 2 && @_ % 2 == 1
2283 0 0 5 $t eq 'Unknown' or $t eq 'None'
0 0 5 $t eq 'Unknown' or $t eq 'None' or $t eq 'GeometryCollection'
1 0 0 $t eq 'LineString' or $t eq 'LinearRing'