Branch Coverage

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


line true false branch
69 0 6 unless $instance
70 0 6 if exists $instance->{'CPLErrorHandler'}
74 0 4 if ($err_cat == $None) { }
2 2 elsif ($err_cat == $Debug) { }
1 1 elsif ($err_cat == $Warning) { }
76 1 1 if ($DEBUG)
89 0 1 unless $instance
90 0 1 unless exists $instance->{'CPLErrorHandler'}
97 17 0 unless @errors or $args
98 0 0 unless (@errors)
99 0 0 if $args->{'OGRError'}
111 0 44 unless defined $gdal_handle
113 0 44 unless $parent
121 0 64 unless $gdal_handle
128 0 0 unless $parent_ref_hash{$gdal_handle}
426 208 0 if $flags & 4096 and not $flags & 8192 and not $flags & 16384
432 1 5 if $instance
447 0 5 unless $class->can('VSIMalloc')
1433 5 0 if ($pc->errmsg)
1438 0 5 if ($pc->errmsg) { }
1445 5 0 if (opendir my $dh, $dir) { }
1449 0 0 if (-d $dist_data_dir) { }
1467 0 6 unless $instance
1482 178 12 isint($i) ? :
1483 0 190 unless $d
1513 0 0 if ($flags or $drivers) { }
1548 1 1 if (@errors)
1553 0 1 unless ($ds)
1568 1 1 unless $writer
1571 0 2 unless $w and $c
1583 1 0 if $self->{'close'}
1590 0 1 unless $importer
1597 0 0 unless $exporter
1604 0 0 unless $setter
1615 0 1 if (@errors > $n) { }
1634 1 5 @_ == 2 ? :