Condition Coverage

blib/lib/Geo/GDAL.pm
Criterion Covered Total %
condition 87 237 36.7


and 3 conditions

line !l l&&!r l&&r condition
1174 665 0 80 @p % 2 == 0 and defined $c
665 80 0 @p % 2 == 0 and defined $c and exists $c{$c}
1177 0 0 205 defined $c{$c} and exists $defaults{$c{$c}}
1184 1 3372 0 not &blessed($p[$i]) and ref $p[$i] ne $t
1201 1123 0 1 defined $default and not defined $string
1203 289 834 0 $int2string_hash and exists $int2string_hash->{$string}
1398 0 0 0 defined $p[$i] and ref $p[$i]
1477 10 0 8 defined $test and $test eq 'YES'
1485 173 0 447 defined $h && $h eq 'YES'
1548 2 49 1 $name and &blessed($name)
1720 8 8 0 $p->{'fields'} and ref $p->{'fields'} ne 'ARRAY'
1818 0 0 0 $proj and ref $proj
1905 0 2 0 $name and &blessed($name)
1941 0 0 0 $b and $b eq 'Geo::GDAL::Dataset'
1976 2 0 0 $p->{$srs} and &blessed($p->{$srs})
1990 2 0 0 $b and $b eq 'Geo::GDAL::Dataset'
2022 0 0 0 $b and $b eq 'Geo::GDAL::Dataset'
2036 0 0 0 ref $sources eq 'ARRAY' and defined $sources->[0]
2259 1 0 1 @_ > 0 and defined $_[0]
2260 1 0 1 @_ > 1 and defined $_[1]
2324 9 0 9 @_ and defined $_[0]
2339 1 0 2 @_ and defined $_[0]
2357 3 0 0 $p->{'progress'} and not defined $p->{'progressdata'}
2392 0 0 0 $p->{'progress'} and not defined $p->{'progressdata'}
2468 0 1 0 @_ and $_[0] =~ /^\d$/
2573 1 0 0 $p->{'options'}{'Connectedness'} and $p->{'options'}{'Connectedness'} == 8
2762 216 4 8 $usage eq $color and $type ne 'Integer'
2926 0 0 0 $self->[2] == 0 && $self->[4] == 0
2936 1 0 4 $p and &blessed($p)
3008 0 0 0 $self->[0] < $e->[2] && $self->[2] > $e->[0] && $self->[1] < $e->[3] && $self->[3] > $e->[1]

or 2 conditions

line l !l condition
490 7 3 $pi //= 'RGB'
1148 1 0 $Geo::GDAL::error[$#Geo::GDAL::error] // ''
1173 745 0 $p[0] // ''
1344 2 0 $p[1] //= 'ReadOnly'
1356 0 0 shift() // ''
1441 0 0 shift() // ''
1656 36 16 $index //= 1
1666 3 0 $type //= 'Byte'
1692 0 0 $name //= ''
1838 0 0 $xoff //= 0
1839 0 0 $yoff //= 0
2250 1 0 $unit //= ''
2269 1 18 $xoff //= 0
2270 1 18 $yoff //= 0
2275 0 19 $alg //= 'NearestNeighbour'
2293 1 14 $xoff //= 0
2294 1 14 $yoff //= 0
2377 0 0 $p->{'layerconstructor'}{'Schema'} //= {}
2378 0 0 $p->{'layerconstructor'}{'Schema'}{'Fields'} //= []
2404 0 2 $p[0] //= 10
2405 0 2 $p[1] //= 0
2488 0 0 $xoff //= 0
2489 0 0 $yoff //= 0
2506 0 0 $xoff //= 0
2507 0 0 $yoff //= 0
2512 0 0 $alg //= 'NearestNeighbour'
2605 0 0 $p->{'options'}{'DATATYPE'} //= 'Float32'
2653 267 0 shift() // 0
2941 1 1 shift() // 1
3048 0 0 shift() // ''

or 3 conditions

line l !l&&r !l&&!r condition
1194 3561 884 2763 $named{$c} //= $defaults{$k}
1345 2 0 0 $p[1] eq 'ReadOnly' or $p[1] eq 'Update'
1730 0 3 10 $f->{'GeometryType'} or exists $Geo::OGR::Geometry::TYPE_STRING2INT{$f->{'Type'}}
2071 1 0 0 $p->{'red'} //= $b
2072 1 0 0 $p->{'green'} //= $b
2073 1 0 0 $p->{'blue'} //= $b
2098 0 1 0 $p->{'red'} //= $b
2099 0 1 0 $p->{'green'} //= $b
2100 0 1 0 $p->{'blue'} //= $b
2104 0 1 0 $p->{'dest'} //= Geo::GDAL::Driver('MEM')->Create('Name', 'dithered', 'Width', $w, 'Height', $h, 'Type', 'Byte')->Band
2114 0 1 0 $p->{'dest'}->ColorTable // $self->ComputeColorTable('Red', $p->{'red'}, 'Green', $p->{'green'}, 'Blue', $p->{'blue'}, 'Progress', $p->{'progress'}, 'ProgressData', $p->{'progressdata'})
0 1 0 $p->{'colortable'} //= $p->{'dest'}->ColorTable // $self->ComputeColorTable('Red', $p->{'red'}, 'Green', $p->{'green'}, 'Blue', $p->{'blue'}, 'Progress', $p->{'progress'}, 'ProgressData', $p->{'progressdata'})
2271 1 18 0 $xsize //= $self->{'XSize'} - $xoff
2272 1 18 0 $ysize //= $self->{'YSize'} - $yoff
2273 0 19 0 $w_tile //= $xsize
2274 0 19 0 $h_tile //= $ysize
2376 0 0 0 $p->{'datasource'} //= Geo::OGR::GetDriver('Memory')->CreateDataSource('ds')
2380 0 0 0 $p->{'idfield'} =~ /^[+-]?\d+$/ or $fields{$p->{'idfield'}}
2383 0 0 0 $p->{'elevfield'} =~ /^[+-]?\d+$/ or $fields{$p->{'elevfield'}}
2500 0 0 0 $xsize //= $xdim
2501 0 0 0 $ysize //= $ydim
2508 0 0 0 $xsize //= $self->{'XSize'} - $xoff
2509 0 0 0 $ysize //= $self->{'YSize'} - $yoff
2510 0 0 0 $xdim //= $xsize
2511 0 0 0 $ydim //= $ysize
2568 0 1 0 $p->{'outlayer'} //= Geo::OGR::Driver('Memory')->Create->CreateLayer('Name', 'polygonized', 'Fields', [{'Name', 'val', 'Type', $dt}, {'Name', 'geom', 'Type', 'Polygon'}])
2574 1 0 0 $leInt32 or $p->{'options'}{'ForceIntPixel'}
2605 1 0 0 $p->{'options'}{'TYPE'} //= ($p->{'options'}{'DATATYPE'} //= 'Float32')
2871 0 0 1 $f eq '..' or $f eq '.'