Branch Coverage

blib/lib/Parse/ExuberantCTags/Merge.pm
Criterion Covered Total %
branch 41 58 70.6


line true false branch
35 0 21 unless defined $file
37 0 21 unless -f $file
52 0 12 unless defined $outfile
57 12 0 unless (defined $tmpdir and -d $tmpdir)
69 0 12 if not defined $files or @$files == 0
73 1 11 if (@$files == 1 and $$files[0][1])
76 0 1 unless open my $fh, '<', $infile
78 0 1 unless open my $ofh, '>', $outfile
97 9 11 if ($$file[1]) { }
109 5 6 unless defined $threshold_super_small
111 5 6 unless defined $threshold_small
121 5 6 if ($total_size < $threshold_super_small)
123 0 5 unless open my $ofh, '>', $outfile
129 4 2 if (@unsorted)
131 2 2 if ($unsorted_size < $threshold_small) { }
1 1 elsif ($sorted_size < $threshold_small) { }
135 1 1 if (@sorted) { }
142 0 1 unless open $tfh, '>', $outfile
147 1 1 unless (@sorted)
157 0 1 unless open my $ofh, '>', $outfile
179 0 4 unless open my $ofh, '>', $outfile
197 0 8 unless open my $fh, '<', $_
201 2 6 if $first =~ /^!_TAG_FILE_SORTED\t/
218 8 16 unless (defined $$next[0])
226 0 8 if (($files[$i - 1][0] cmp $files[$i][0]) == 1) { }
256 0 3 unless open my $fh, '<', $infile
259 3 0 unless $first_line =~ /^!_TAG_FILE_SORTED/
283 0 11 unless open my $fh, '<', $infile
286 11 0 unless $first_line =~ /^!_TAG_FILE_SORTED/