Branch Coverage

blib/lib/App/Sets/Sort.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
27 0 2 unless eval { do { (my $fh, $filename) = tempfile(); binmode $fh, ':raw'; die 'whatever' unless print {$fh;} "one\ntwo\nthree\nfour\n"; die 'whatever' unless close $fh } }
30 0 2 unless print {$fh;} "one\ntwo\nthree\nfour\n"
31 0 2 unless close $fh
34 0 2 unless my $fh = eval { do { open my $tfh, '-|', 'sort', '-u', $filename; $tfh } }
39 0 2 unless scalar @lines == 4
40 0 2 unless defined $lines[3]
42 0 2 unless $lines[3] eq 'two'
52 65 64 if ($has_sort)
54 65 0 if eval { do { open $fh, '-|', 'sort', '-u', $filename } }
66 0 65 unless open my $ifh, '<', $filename
76 3 615 if (@records >= $max_records)
78 3 0 if @fhs >= $max_files - 1
82 65 0 if @records
84 65 0 if @fhs
96 0 618 if defined $previous and $previous eq $item
106 65 3 if @$fhs == 1
115 6 0 if (defined $head) { }
130 6 8 if $best gt $head
140 19 6 if (defined $head) { }