Condition Coverage

blib/lib/PDLA/Primitive.pm
Criterion Covered Total %
condition 30 82 36.5


and 3 conditions

line !l l&&!r l&&r condition
263 19 0 1 $x->dim(0) == 1 and $x->dim(1) == 1
18 0 1 $y->dim(0) == 1 and $y->dim(1) == 1
644 0 0 0 defined $opt && exists $opt->{'Boundary'}
899 0 8 0 $PDLA::Bad::Status and $pdl->badflag
923 0 8 0 $PDLA::Bad::Status and $srt->badflag
1095 0 0 2 defined $l and defined $h
1565 1 0 0 ref $_[0] && ref $_[0] ne 'PDLA::Type'
1669 0 2 0 defined $x and not ref $x
1692 0 0 4 defined $y and $y->nelem
1793 8 0 1 ref $_[0] && ref $_[0] ne 'PDLA::Type'
1805 0 0 2 ref $_[0] && ref $_[0] ne 'PDLA::Type'
1842 2 0 0 ref $_[0] && ref $_[0] ne 'PDLA::Type'
1923 149 0 0 not defined $opt->{'mode'} and keys %$opt
2656 1 0 0 defined $options and ref $options ne 'HASH'
2713 0 1 0 $PDLA::Bad::Status and $source->badflag

or 2 conditions

line l !l condition
2668 0 1 $opt->{'b'} || $opt->{'boundary'} || $opt->{'Boundary'} || $opt->{'bound'} || $opt->{'Bound'} || 'extend'
2669 0 1 $opt->{'bad'} || $opt->{'Bad'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
263 1 4 15 $x->dim(0) == 1 and $x->dim(1) == 1 or $y->dim(0) == 1 and $y->dim(1) == 1
638 0 0 0 $#_ < 1 or $#_ > 2
891 0 0 9 $pdl->nelem == 0 or $pdl->ndims < 2
1078 2 0 0 defined $l or defined $h
1300 0 0 1 $weights->ndims != $data->ndims or (pdl($weights->dims) != pdl($data->dims))->or
1675 0 0 2 not defined $x or $x->nelem == 0
1923 0 0 149 not defined $opt->{'mode'} and keys %$opt or keys %$opt > 1
2661 0 0 1 $opt->{'m'} || $opt->{'meth'} || $opt->{'method'} || $opt->{'Method'}
2671 0 1 0 $method eq 1 or $method =~ /^l(in(ear)?)?/i
0 0 0 $method eq 3 or $method =~ /^c(u(b(e|ic)?)?)?/i
3376 0 0 5 $x->ndims > 1 or $y->ndims > 1