Branch Coverage

blib/lib/Sys/Export/VFAT/AllocationTable.pm
Criterion Covered Total %
branch 47 82 57.3


line true false branch
22 202 432 if (@_ > 1) { }
28 1 4 defined $max && $first_free > $max ? :
33 201 1 if (defined $val)
35 0 201 if defined $min and $val < $min
37 0 201 if $val < 2
49 3 5 if defined $max
60 0 250 @attrs == 1 && ref $attrs[0] eq 'HASH' ? :
62 0 0 unless not defined $max_cluster_id or &isa_int($max_cluster_id) and $max_cluster_id >= 2
64 0 250 if keys %attrs
77 0 19736 unless $count
78 0 19736 unless &isa_int($count) and $count > 0
81 0 19736 $self->{'max_cluster_id'} ? :
85 1 19736 defined $upto ? :
86 19736 1 if (not defined $n or $n >= $count)
88 19736 0 if (not defined $n) { }
0 0 elsif ($n == $count) { }
89 0 19736 if defined $lim and $lim - $from < $count
103 63160 19736 if $prev
118 0 8 unless $count
119 0 8 unless &isa_int($count) and $count > 0
121 0 8 unless &isa_int($cluster_id) and $cluster_id >= 2
128 0 360 unless $count
129 0 360 unless &isa_int($count) and $count > 0
136 281 156 if ($align > 1)
138 252 29 if $remainder
141 77 360 if defined $upto and $upto - $start < $count
150 8 360 unless (defined $idx)
154 0 8 unless $idx & 1
158 368 0 if ($idx == $inv->$#*) { }
160 184 184 $from_edge ? :
165 0 0 if $lim > $$inv[$idx + 1]
167 0 0 $to_edge ? :
0 0 $from_edge ? :
0 0 if ($from_edge and $to_edge) { }
176 0 368 if $self->max_cluster_id and $cl_lim - 1 > $self->max_cluster_id
177 0 368 unless _invlist_alloc($self->{'_invlist'}, $cl_start, $cl_lim, $invlist_idx)
192 0 1 if $cl_count > 268435445
193 0 1 if $max < $fat->$#*
197 0 1 if ($cl_count > 65524) { }
0 1 elsif ($cl_count > 4084) { }
208 1 0 unless $max & 1