Condition Coverage

blib/lib/DiaColloDB/Utils.pm
Criterion Covered Total %
condition 0 161 0.0


and 3 conditions

line !l l&&!r l&&r condition
72 0 0 0 $fwrite and not $fappend
148 0 0 0 fcwrite($flags) and not fctrunc($flags)
357 0 0 0 packsize($_[0], 0) == packsize($_[0], 0, 0) && !($_[0] =~ /\*|(?:\[(?:[2-9]|[0-9]{2,})\])|(?:[[:alpha:]].*[[:alpha:]])/)
425 0 0 0 ($_[0] <= 0 || $_[0] >= 0) && $_[0] != 'INF' && $_[0] != '-INF'
452 0 0 0 defined $_ and $_ > $max
461 0 0 0 defined $_ and $_ < $min
480 0 0 0 defined $tmp && $tmp eq $_
487 0 0 0 defined $tmp && $tmp eq $_
498 0 0 0 defined $tmp && $tmp->[0] eq $_->[0]
586 0 0 0 $h == 0 and $m == 0
623 0 0 0 !ref($_) && -d $_
686 0 0 0 'File::Copy'->can('syscopy') and 'File::Copy'->can('syscopy') ne 'File::Copy'->can('copy')
696 0 0 0 $rc &&= chown($uid, $gid, $dst)
698 0 0 0 $rc &&= chmod($perm & 4095, $dst)
700 0 0 0 $rc &&= utime($atime, $mtime, $dst)
723 0 0 0 @layers0 and @layers1
0 0 0 @layers0 and @layers1 and $layers0[0] eq $layers1[0]
995 0 0 0 not ref $type and 'PDL'->can($type)
1059 0 0 0 not $filename =~ m[^/] and defined $opts{'DIR'}
1060 0 0 0 not $filename =~ m[^/] and $opts{'TMPDIR'}
1194 0 0 0 0 < $njobs and $njobs < 1

or 2 conditions

line l !l condition
63 0 0 $flags //= 'r'
366 0 0 $val //= 305419896
480 0 0 $_[0] // []
487 0 0 $_[0] // []
494 0 0 $keyfunc //= \&overload::StrVal
502 0 0 $l // []
510 0 0 $_[0] // []
573 0 0 $sfmt ||= '%06.3f'
609 0 0 (stat $_[0])[9] // 0
623 0 0 (!ref($_) && -d $_ ? du_glob("$_/*") : -s $_) // 0
646 0 0 $opts{'method'} || \&File::Copy::copy
647 0 0 $opts{'label'} || 'copyto()'
862 0 0 $opts{'class'} // 'PDL'
863 0 0 $opts{'mmap'} // 1
864 0 0 !$mmap || (exists $opts{'ReadOnly'} ? $opts{'ReadOnly'} : !(-w "$file.hdr")) || 0
1050 0 0 shift() // 'tmpXXXXX'
1090 0 0 $template //= 'dcdbXXXXXX'
1091 0 0 $opts{'SUFFIX'} //= '.tmpa'
1114 0 0 $template //= 'dcdbXXXXXX'
1115 0 0 $opts{'SUFFIX'} //= '.pf'
1139 0 0 $template //= 'dcdbXXXXXX'
1140 0 0 $opts{'SUFFIX'} //= '.tmph'
1164 0 0 shift() || '/proc/cpuinfo'
1181 0 0 $NCORES{$filename} //= 0
1192 0 0 $njobs //= -1

or 3 conditions

line l !l&&r !l&&!r condition
67 0 0 0 $flags =~ /[a]/ || $flags =~ />>/
88 0 0 0 ($flags & 0) == 0 || ($flags & 2) == 2
95 0 0 0 ($flags & 1) == 1 || ($flags & 2) == 2
133 0 0 0 $perms //= 438 & ~(umask)
379 0 0 0 not $packas or $packas eq 'raw'
400 0 0 0 not $packas or $packas eq 'raw'
417 0 0 0 $_[0] <= 0 || $_[0] >= 0
421 0 0 0 !($_[0] <= 0 || $_[0] >= 0) || $_[0] == 'INF' || $_[0] == '-INF'
452 0 0 0 not defined $max or defined $_ and $_ > $max
461 0 0 0 not defined $min or defined $_ and $_ < $min
562 0 0 0 !exists $_[1] || $_[1]
657 0 0 0 -d $dstdir or make_path($dstdir)
1028 0 0 0 not -e $_ or unlink $_
1040 0 0 0 $TMPDIR || 'File::Spec'->tmpdir
1143 0 0 0 $opts{'flags'} //= fcflags('rw' . ($opts{'APPEND'} ? 'a' : ''))
1203 0 0 0 !$njobs || $njobs < 1