Condition Coverage

blib/lib/PDL/FuncND.pm
Criterion Covered Total %
condition 30 45 66.6


and 3 conditions

line !l l&&!r l&&r condition
65 4 0 1 not ref $opt->{'center'} and $opt->{'center'} eq "auto"
70 1 0 3 "ARRAY" eq ref $opt->{'center'} and not ref $opt->{'center'}[0]
1 1 2 "ARRAY" eq ref $opt->{'center'} and not ref $opt->{'center'}[0] and not &looks_like_number($opt->{'center'}[0])
90 25 6 3 not ref $opt->{'center'} and $opt->{'center'} eq "auto"
7 0 24 "ARRAY" eq ref $opt->{'center'} and not ref $opt->{'center'}[0]
7 22 2 "ARRAY" eq ref $opt->{'center'} and not ref $opt->{'center'}[0] and $opt->{'center'}[0] eq "offset"
135 13 31 6 defined $center and $center->ndims == 0
137 13 37 0 defined $center and $center->ndims != 1 || ($center->dims)[0] != $ndims
146 9 25 16 defined $opt->{'scale'} && ref $opt->{'scale'}
6 0 10 "ARRAY" eq ref $opt->{'scale'} and @{$opt->{'scale'};} == $ndims
0 6 0 eval { do { $opt->{'scale'}->isa("PDL") } } and $opt->{'scale'}->ndims == 1
6 0 0 eval { do { $opt->{'scale'}->isa("PDL") } } and $opt->{'scale'}->ndims == 1 and ($opt->{'scale'}->dims)[0] == $ndims
0 0 6 eval { do { $opt->{'scale'}->isa("PDL") } } and $opt->{'scale'}->ndims == 2
0 0 6 eval { do { $opt->{'scale'}->isa("PDL") } } and $opt->{'scale'}->ndims == 2 and all(pdl($opt->{'scale'}->dims) == pdl($ndims, $ndims))

or 3 conditions

line l !l&&r !l&&!r condition
137 0 0 37 $center->ndims != 1 || ($center->dims)[0] != $ndims