Condition Coverage

blib/lib/PDLA/Core.pm
Criterion Covered Total %
condition 83 120 69.1


and 3 conditions

line !l l&&!r l&&r condition
744 6 0 2 &Scalar::Util::blessed($op2) and $op2->isa('PDLA')
1023 68 3 0 $has_nan and not $types[$type]->usenan
1029 67 4 0 $has_inf and not $types[$type]->usenan
1250 19 0 0 $PDLA::debug and $PDLA::undefval
1270 237 9 95 is_scalar_SvPOK($value) and $value =~ /inf/i || $value =~ /nan/i || !&Scalar::Util::looks_like_number($value)
246 0 0 $PDLA::Core::Config{'ivsize'} < 8 and $PDLA::Core::pack[$new->get_datatype] eq 'q*'
2146 13 1 1 !ref($_) && $_ eq 'X'
13 0 0 $#$_ > 1 && @$_[2] == 0
2529 117 35 1 ref $_[0] && ref $_[0] ne 'PDLA::Type'
2570 40 4 5 ref $_[0] && ref $_[0] ne 'PDLA::Type'
2645 10 11 6 @_ == 2 and $_[1] == -1
2866 33 26 6 $self->badflag and $self->isbad
3136 220 0 0 $chkmode == 1 and $this->nelem > 1
3138 218 0 2 $chkmode == 2 and $this->nelem > 1
3212 0 52 2 $d[$j] != 1 and $resdims[$j] != $d[$j]
3243 0 3 3 $i < @_ and not eval { do { $_[$i]->isa('PDLA') } }
3302 3 2 0 @not_a_piddle == 0 and @mismatched_dims == 0
3479 243 169 73 $badflag and $t eq 'BAD'
3484 110 294 8 $dformat and length $t > 7
3566 686 43 27 $badflag and $x->[$i] eq 'BAD'
4006 0 0 0 $writable && $shared

or 3 conditions

line l !l&&r !l&&!r condition
476 961 591 0 ref $class || $class
744 41 2 6 &Scalar::Util::looks_like_number($op2) or &Scalar::Util::blessed($op2) and $op2->isa('PDLA')
916 0 0 9 $this->fflows || $this->bflows
974 1 1 93 $value eq '' or $value eq '[]'
982 6 4 83 $value =~ /e\p{IsAlpha}/ or $value =~ /\p{IsAlpha}e/
994 2 2 79 $value =~ /bad\B/ or $value =~ /\Bbad/
999 0 0 79 $value =~ /\Bnan/ or $value =~ /nan\B/
1013 0 2 75 $value =~ /inf\B/ or $value =~ /\Binf/
1017 2 2 71 $value =~ /pi\B/ or $value =~ /\Bpi/
1077 0 0 67 $value =~ /EE[+\-]/ or $value =~ /[+\-]EE/
1183 5 0 270 s/^inf//i or s/1\.\#INF//i
3 0 267 s/^nan//i or s/^1\.\#IND//i
1270 12 83 9 $value =~ /inf/i || $value =~ /nan/i || !&Scalar::Util::looks_like_number($value)
2213 1 1 0 ref \$_[1] eq 'SCALAR' or ref $_[1] eq 'ARRAY'
3211 1 0 53 not defined $resdims[$j] or $resdims[$j] == 1
3231 2 0 3 $@ =~ /PDLA::Ops::assgn|mismatched/ or $@ =~ /"badflag"/
2 3 0 $@ =~ /PDLA::Ops::assgn|mismatched/ or $@ =~ /"badflag"/ or $@ =~ /"initialize"/
3509 54 0 0 not defined $format or $format eq ''
3960 0 0 0 defined $pdl->gethdr or not defined $Astro::FITS::Header::VERSION