Branch Coverage

blib/lib/Net/RRP/Toolkit.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
15 0 0 $1 ? :
33 0 0 unless $handler
34 0 0 unless defined $buffer
42 0 0 unless $itemLength
44 0 0 if $length
47 0 0 defined $itemLength ? :
53 0 0 unless $handler
54 0 0 unless defined $buffer
64 0 0 unless $itemLength
69 0 0 defined $itemLength ? :
86 0 0 unless safeCall(sub { sysopen FROMFILE, $fromName, 'r'; } )
90 0 0 unless flock FROMFILE, 1
93 0 0 unless @stat = safeCall(sub { stat FROMFILE; } )
95 0 0 unless -f ($tmpToName = sprintf($tmpMask, $i++))
98 0 0 unless safeCall(sub { sysopen TOFILE, "$tmpToName", 'w', $stat[2]; } )
107 0 0 unless defined($n = safeCall(sub { sysread FROMFILE, $buffer, $bufferSize; } ))
109 0 0 unless $n
112 0 0 unless safeCall(sub { syswrite TOFILE, $buffer, $n; } )
116 0 0 if (*FROMFILE)
118 0 0 unless safeCall(sub { close FROMFILE; } )
121 0 0 if (*TOFILE)
123 0 0 unless safeCall(sub { close TOFILE; } )
124 0 0 if ($@)
126 0 0 unless safeCall(sub { unlink $tmpToName; } )
130 0 0 if $@
132 0 0 unless rename $tmpToName, $toName
159 0 0 unless defined $line
160 0 0 unless $line
173 0 0 unless defined $result[0]
174 0 0 if /=/ and not defined $result[1]