Branch Coverage

blib/lib/File/Shuffle.pm
Criterion Covered Total %
branch 19 34 55.8


line true false branch
100 0 2 unless (exists $Parameters{'inputFile'} and defined $Parameters{'inputFile'})
107 0 2 unless (defined $InputFile)
113 0 2 unless (-e $InputFile)
119 0 2 unless (-f $InputFile)
126 0 2 if exists $Parameters{'encoding'} and defined $Parameters{'encoding'}
129 0 2 if length $Encoding and substr($Encoding, 0, 1) ne ':'
133 1 1 if exists $Parameters{'fileSizeBound'} and defined $Parameters{'fileSizeBound'}
137 0 2 if exists $Parameters{'tempDirectory'} and defined $Parameters{'tempDirectory'}
141 0 2 if exists $Parameters{'outputFile'} and defined $Parameters{'outputFile'}
145 0 2 unless (open $inputFileHandle, "<$Encoding", $InputFile)
154 1 1 if ($inputFileBytes <= $FileSizeBound) { }
165 1 0 unless defined $TempDirectory
204 0 1 unless (open $outputFileHandle, ">$Encoding", $OutputFile)
250 0 1 unless (open $outputFileHandle, ">$Encoding", $OutputFile)
277 0 1 if $BytesInFile < 2
283 0 1 if $maxPrefixBits < 1
310 0 1001 if $totalBytes & 1