Branch Coverage

blib/lib/Test/PDL.pm
Criterion Covered Total %
branch 64 70 91.4


line true false branch
141 15 66 if ($_[$i] =~ /^-/) { }
144 1 14 unless grep {$key eq $_;} keys %DEFAULTS
145 0 14 unless defined $val
180 1 1518 if @_ > 3
183 1 1517 if eval { do { $arg->isa("PDL") } }
186 1265 252 if ($arg)
187 81 1184 if (ref $arg eq 'HASH') { }
192 1502 15 if $ok
196 7 8 if (defined $mask)
197 7 0 defined $mask ? :
198 0 7 if defined $coords and $coords->dim(1) > 5
208 14 1 if $got->isa("PDL")
209 13 2 eval { do { not $got->isnull if $got->isa('PDL') } } ? :
14 1 if $expected->isa("PDL")
13 2 eval { do { not $expected->isnull if $expected->isa('PDL') } } ? :
303 1587 184 ref $arg eq 'HASH' ? :
304 0 1771 unless defined $opt->{'atol'} or defined $opt->{'rtol'}
307 0 1771 if $opt->{'atol'} < 0
308 0 1771 if $opt->{'rtol'} < 0
310 6 4 wantarray ? :
10 1761 unless eval { do { $got->isa("PDL") } }
312 3 2 wantarray ? :
5 1756 unless eval { do { $expected->isa("PDL") } }
314 4 2 wantarray ? :
6 1750 if $opt->{'require_equal_types'} and $got->type != $expected->type
317 4 2 wantarray ? :
6 1744 if @got_dims != @exp_dims
320 7 4 wantarray ? :
11 2043 if shift @got_dims != shift @exp_dims
323 60 2 wantarray ? :
62 1671 if $got->isempty and $expected->isempty
327 1603 24 wantarray ? :
1627 44 if $res->all
330 26 18 wantarray ? :
420 45 15 scalar @_ > 1 ? :