Branch Coverage

blib/lib/Geo/GDAL/FFI.pm
Criterion Covered Total %
branch 37 72 51.3


line true false branch
68 0 6 unless $instance
69 0 6 if exists $instance->{'CPLErrorHandler'}
73 0 4 if ($err_cat == $None) { }
2 2 elsif ($err_cat == $Debug) { }
1 1 elsif ($err_cat == $Warning) { }
75 1 1 if ($DEBUG)
88 0 1 unless $instance
89 0 1 unless exists $instance->{'CPLErrorHandler'}
96 17 0 unless @errors or $args
97 0 0 unless (@errors)
98 0 0 if $args->{'OGRError'}
110 0 44 unless defined $gdal_handle
112 0 44 unless $parent
120 0 64 unless $gdal_handle
127 0 0 unless $parent_ref_hash{$gdal_handle}
425 208 0 if $flags & 4096 and not $flags & 8192 and not $flags & 16384
431 1 5 if $instance
446 0 5 unless $class->can('VSIMalloc')
1418 5 0 if ($pc->errmsg)
1423 0 5 if ($pc->errmsg) { }
1430 5 0 if (opendir my $dh, $dir) { }
1434 0 0 if (-d $dist_data_dir) { }
1452 0 6 unless $instance
1467 178 12 isint($i) ? :
1468 0 190 unless $d
1498 0 0 if ($flags or $drivers) { }
1533 1 1 if (@errors)
1538 0 1 unless ($ds)
1553 1 1 unless $writer
1556 0 2 unless $w and $c
1568 1 0 if $self->{'close'}
1575 0 1 unless $importer
1582 0 0 unless $exporter
1589 0 0 unless $setter
1600 0 1 if (@errors > $n) { }
1619 1 5 @_ == 2 ? :