Condition Coverage

blib/lib/PDL/IO/Pic.pm
Criterion Covered Total %
condition 32 96 33.3


and 3 conditions

line !l l&&!r l&&r condition
93 0 0 0 $pdl->ndims > 2 and $pdl->dim(0) == 3
106 0 14 0 !$converter{'JPEG'} && File::Which::which('pnmtojpeg')
109 0 14 0 !$converter{'JPEG'} && File::Which::which('cjpeg')
238 0 0 9 exists $converter{$type} and $converter{$type}{'referral'} && $converter{$type}{'referral'}{'get'} || !($converter{$type}{'get'} =~ /NA/)
255 0 0 11 $converter{$type}{'get'} and $converter{$type}{'get'} =~ /^NONE/
445 5 0 0 defined $hints->{'IFORM'} and $hints->{'IFORM'} =~ /RAW/
446 5 0 0 defined $hints->{'IFORM'} and $hints->{'IFORM'} =~ /ASCII/
512 0 3 3 @_ >= 2 && UNIVERSAL::isa($_[0], 'PDL')
514 2 0 4 $out->ndims == 3 && $out->dim(0) == 3
516 4 0 0 defined $out->gethdr && $out->gethdr->{'SIMPLE'}
2 0 4 $isrgb and not defined $out->gethdr && $out->gethdr->{'SIMPLE'}
597 0 0 0 $im->ndims == 3 && $im->dim(2) == 3
602 0 0 0 $isrgb and not $args[1] =~ /\.fits$/i || ref $args[2] eq 'HASH' && $args[2]{'FORMAT'} =~ /fits/i
868 0 0 3 exists $converter{$type} and $converter{$type}{'referral'} && $converter{$type}{'referral'}{'put'} || !($converter{$type}{'put'} =~ /NA/)
888 5 0 0 defined $hints->{'COLOR'} and $hints->{'COLOR'} =~ /bwdither/
904 4 0 0 not $converter{$format}{'ushortok'} and $pdl->get_datatype == $PDL::IO::Pic::PDL_US
912 3 0 2 @Dims >= 3 && $Dims[0] == 3
924 3 2 0 $isrgb and $iform =~ /P[B,G]M/

or 3 conditions

line l !l&&r !l&&!r condition
238 0 9 0 $converter{$type}{'referral'} && $converter{$type}{'referral'}{'get'} || !($converter{$type}{'get'} =~ /NA/)
258 0 0 0 $converter{$type}{'get'} // barf("No converter for '${type}'")
259 0 0 0 $converter{$type}{'FLAGS'} // $Dflags
602 0 0 0 $args[1] =~ /\.fits$/i || ref $args[2] eq 'HASH' && $args[2]{'FORMAT'} =~ /fits/i
715 0 0 0 @Dims != 4 or $Dims[0] != 3
0 0 0 @Dims != 4 or $Dims[0] != 3 or $pdl->get_datatype != $PDL::IO::Pic::PDL_B
772 0 0 0 $converter{$_}{$rw} || $converter{$_}{'referral'} && $converter{$_}{'referral'}{$refer_rw}
775 0 0 8 $converter{$format}{$rw} || $converter{$format}{'referral'} && $converter{$format}{'referral'}{$refer_rw}
832 0 0 2 not defined $len or $len != 12
868 0 3 0 $converter{$type}{'referral'} && $converter{$type}{'referral'}{'put'} || !($converter{$type}{'put'} =~ /NA/)
904 1 0 4 $pdl->get_datatype >= $PDL::IO::Pic::PDL_L or $pdl->get_datatype == $PDL::IO::Pic::PDL_S
1 0 4 $pdl->get_datatype >= $PDL::IO::Pic::PDL_L or $pdl->get_datatype == $PDL::IO::Pic::PDL_S or not $converter{$format}{'ushortok'} and $pdl->get_datatype == $PDL::IO::Pic::PDL_US
913 2 3 0 $isrgb or @Dims == 2
920 3 0 2 @Dims == 2 or $hints->{'COLOR'} =~ /bwdither/i