Condition Coverage

blib/lib/PDL/Dims.pm
Criterion Covered Total %
condition 26 70 37.1


and 3 conditions

line !l l&&!r l&&r condition
59 0 0 0 $d eq 'channel' and dimsize($self, $d) == 1
68 0 0 0 spacing($self, $d) and $d ne 't'
101 73 0 0 not $d and wantarray
122 134 0 0 not $d and wantarray
186 126 1 0 not $d and wantarray
210 29 23 0 not defined $d and wantarray
221 49 0 0 not $d and wantarray
238 28 0 0 not $d and wantarray
241 0 28 0 defined $v and ref $self->hdr->{$d} ne 'HASH'
250 42 0 0 not $d and wantarray
252 14 28 0 defined $v and ref $self->hdr->{$d} ne 'HASH'
262 73 3 0 not $d and wantarray
339 11 10 0 $p{'inc'} and $p{'max'}
416 0 0 0 not defined $index and wantarray
432 78 0 0 not defined $index and wantarray
453 0 0 4 ref $i eq 'ARRAY' and dimsize($self, $d) == $#{$i;} + 1

or 2 conditions

line l !l condition
69 0 0 dimsize($self, $d) - 1 || 1
278 25 0 shift() || (return)
318 25 0 $p{'size'} || 1
346 0 0 dimsize($self, $d) - 1 || 1
351 0 21 $p{'min'} || 0
359 0 25 $p{'index'} || 0
507 0 0 shift() || (return)
881 0 7 int $5 || 1

or 3 conditions

line l !l&&r !l&&!r condition
301 15 0 10 not defined $p{'pos'} or $p{'pos'} > $self->hdr->{'ndims'}
882 0 0 7 $3 || $1