Condition Coverage

blib/lib/PDL/Primitive.pm
Criterion Covered Total %
condition 38 82 46.3


and 3 conditions

line !l l&&!r l&&r condition
263 106 1 1 $x->dim(0) == 1 and $x->dim(1) == 1
100 5 2 $y->dim(0) == 1 and $y->dim(1) == 1
644 0 0 0 defined $opt && exists $opt->{'Boundary'}
899 0 8 0 $PDL::Bad::Status and $pdl->badflag
923 0 8 0 $PDL::Bad::Status and $srt->badflag
1095 0 1 10 defined $l and defined $h
1565 1 0 0 ref $_[0] && ref $_[0] ne 'PDL::Type'
1669 0 6 0 defined $x and not ref $x
1692 0 0 8 defined $y and $y->nelem
1793 9 0 1 ref $_[0] && ref $_[0] ne 'PDL::Type'
1805 0 0 2 ref $_[0] && ref $_[0] ne 'PDL::Type'
1842 2 0 0 ref $_[0] && ref $_[0] ne 'PDL::Type'
1984 149 0 0 not defined $opt->{'mode'} and keys %$opt
2717 1 15 0 defined $options and ref $options ne 'HASH'
2774 0 8 1 $PDL::Bad::Status and $source->badflag

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
263 1 5 102 $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 11 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 6 not defined $x or $x->nelem == 0
1984 0 0 149 not defined $opt->{'mode'} and keys %$opt or keys %$opt > 1
2722 11 0 5 $opt->{'m'} || $opt->{'meth'} || $opt->{'method'} || $opt->{'Method'}
2732 0 9 1 $method eq 1 or $method =~ /^l(in(ear)?)?/i
0 1 0 $method eq 3 or $method =~ /^c(u(b(e|ic)?)?)?/i
3437 0 0 5 $x->ndims > 1 or $y->ndims > 1