Branch Coverage

blib/lib/PDL/Image2D.pm
Criterion Covered Total %
branch 59 90 65.5


line true false branch
125 3 5 if ref $_[$#_] eq 'HASH'
126 0 8 if $#_ < 1 or $#_ > 2
129 0 8 $#_ == 2 ? :
134 5 3 !(defined $opt && exists $opt->{'Boundary'}) ? :
193 0 2 if ref $_[$#_] eq 'HASH'
194 0 2 if $#_ < 1 or $#_ > 2
197 0 2 if all($kern <= 0)
199 0 2 $#_ == 2 ? :
204 2 0 !(defined $opt && exists $opt->{'Boundary'}) ? :
264 1 0 if ref $_[$#_] eq 'HASH'
265 0 1 if $#_ < 2 or $#_ > 3
268 0 1 if $p == 0 and $q == 0
270 0 1 $#_ == 3 ? :
275 0 1 !(defined $opt && exists $opt->{'Boundary'}) ? :
606 1 2 if ref $_[-1] eq 'HASH'
607 0 3 unless @_ == 3
610 1 2 if ($opt) { }
614 1 0 if ($parsed->current->{'Method'} eq 'pnpoly')
686 0 2 unless @_ == 2 or @_ == 4
690 1 1 unless (defined $vertx)
691 0 1 unless $ty->getdim(0) == 2
744 1 1 if ref $_[-1] eq 'HASH'
745 0 2 unless @_ == 2
748 0 2 unless $ps->getdim(0) == 2
750 1 1 if ($opt)
754 1 0 if $parsed->current->{'Method'} eq 'pnpoly'
1143 18 0 if ($PDL::Bad::Status) { }
1184 73 44 if ($fit->at($i, $j))
1196 0 9 if $#_ < 4 or $#_ >= 5 and ref $_[5] ne 'HASH'
1206 7 2 if $#_ > -1
1211 0 9 unless $npts == $y->nelem and $npts == $u->nelem and $npts == $v->nelem and $x->getndims == 1 and $y->getndims == 1 and $u->getndims == 1 and $v->getndims == 1
1221 0 9 unless UNIVERSAL::isa($fit, 'PDL') and $fit_ndim == 2 || $fit_ndim == 3 && $fit->getdim(2) == 2 and $fit->getdim(0) == $nf and $fit->getdim(1) == $nf
1230 5 4 if ($fit_ndim == 2) { }
1239 0 4 $ncoeffx > $ncoeffy ? :
1242 0 9 unless $npts >= $ncoeff
1250 5 4 if ($fit_ndim == 2) { }
1262 5 4 if $ncoeff == $nf2 and $ncoeffx == $ncoeffy
1273 11 22 if ($fitx->at($i, $j))
1277 11 22 if ($fity->at($i, $j))
1292 0 1 if $#_ != 3
1302 0 1 unless $npts == $u->nelem and $npts == $v->nelem and $u->getndims == 1 and $v->getndims == 1
1452 0 6 unless exists $warp2d{$kernel}
1463 0 6 if ref $_[$#_] eq 'HASH'
1465 0 6 if $#_ < 2 or $#_ > 3
1470 6 0 $#_ == -1 ? :