Condition Coverage

blib/lib/PDL/Core.pm
Criterion Covered Total %
condition 84 120 70.0


and 3 conditions

line !l l&&!r l&&r condition
745 6 0 3 &Scalar::Util::blessed($op2) and $op2->isa('PDL')
1024 72 3 0 $has_nan and not $types[$type]->usenan
1030 71 4 0 $has_inf and not $types[$type]->usenan
1251 58 0 0 $PDL::debug and $PDL::undefval
1271 525 10 99 is_scalar_SvPOK($value) and $value =~ /inf/i || $value =~ /nan/i || !&Scalar::Util::looks_like_number($value)
535 0 0 $PDL::Core::Config{'ivsize'} < 8 and $PDL::Core::pack[$new->get_datatype] eq 'q*'
2147 13 1 1 !ref($_) && $_ eq 'X'
13 0 0 $#$_ > 1 && @$_[2] == 0
2530 149 63 4 ref $_[0] && ref $_[0] ne 'PDL::Type'
2571 65 15 5 ref $_[0] && ref $_[0] ne 'PDL::Type'
2646 35 38 8 @_ == 2 and $_[1] == -1
2867 171 29 6 $self->badflag and $self->isbad
3137 241 0 0 $chkmode == 1 and $this->nelem > 1
3139 239 0 2 $chkmode == 2 and $this->nelem > 1
3213 0 67 2 $d[$j] != 1 and $resdims[$j] != $d[$j]
3244 0 3 3 $i < @_ and not eval { do { $_[$i]->isa('PDL') } }
3303 3 2 0 @not_a_piddle == 0 and @mismatched_dims == 0
3480 254 151 71 $badflag and $t eq 'BAD'
3485 121 272 12 $dformat and length $t > 7
3567 806 43 27 $badflag and $x->[$i] eq 'BAD'
4007 0 0 5 $writable && $shared

or 3 conditions

line l !l&&r !l&&!r condition
477 1798 707 0 ref $class || $class
745 41 3 6 &Scalar::Util::looks_like_number($op2) or &Scalar::Util::blessed($op2) and $op2->isa('PDL')
917 0 0 9 $this->fflows || $this->bflows
975 1 1 97 $value eq '' or $value eq '[]'
983 6 4 87 $value =~ /e\p{IsAlpha}/ or $value =~ /\p{IsAlpha}e/
995 2 2 83 $value =~ /bad\B/ or $value =~ /\Bbad/
1000 0 0 83 $value =~ /\Bnan/ or $value =~ /nan\B/
1014 0 2 79 $value =~ /inf\B/ or $value =~ /\Binf/
1018 2 2 75 $value =~ /pi\B/ or $value =~ /\Bpi/
1078 0 0 71 $value =~ /EE[+\-]/ or $value =~ /[+\-]EE/
1184 5 0 325 s/^inf//i or s/1\.\#INF//i
3 0 322 s/^nan//i or s/^1\.\#IND//i
1271 12 87 10 $value =~ /inf/i || $value =~ /nan/i || !&Scalar::Util::looks_like_number($value)
2214 110 4 0 ref \$_[1] eq 'SCALAR' or ref $_[1] eq 'ARRAY'
3212 1 0 68 not defined $resdims[$j] or $resdims[$j] == 1
3232 2 0 3 $@ =~ /PDL::Ops::assgn|mismatched/ or $@ =~ /"badflag"/
2 3 0 $@ =~ /PDL::Ops::assgn|mismatched/ or $@ =~ /"badflag"/ or $@ =~ /"initialize"/
3510 56 0 0 not defined $format or $format eq ''
3961 0 0 0 defined $pdl->gethdr or not defined $Astro::FITS::Header::VERSION