Branch Coverage

blib/lib/Sys/Export/VFAT/Geometry.pm
Criterion Covered Total %
branch 52 98 53.0


line true false branch
36 0 378 @attrs == 1 && &isa_hash($attrs[0]) ? :
45 0 378 unless not defined $align_clusters or &isa_pow2($align_clusters)
48 0 378 unless &isa_int($volume_offset) and $volume_offset >= 0
52 0 378 unless &isa_pow2($bytes_per_sector) and 512 <= $bytes_per_sector and $bytes_per_sector <= 4096
56 0 1 $bytes_per_sector >= 4096 ? :
57 0 378 unless &isa_pow2($sectors_per_cluster) and $sectors_per_cluster <= 128
60 0 378 unless $cluster_size <= 32768
65 0 378 unless &isa_int($fat_count) and 0 < $fat_count and $fat_count <= 255
78 0 378 if (defined $reserved_sector_count and defined $fat_sector_count and defined $root_dirent_count and defined $total_sector_count) { }
378 0 elsif (defined $cluster_count) { }
85 0 0 if defined $cluster_count and $cluster_count != $calc_cluster_count
88 0 0 $cluster_count < 65525 ? :
0 0 $cluster_count < 4085 ? :
93 0 378 unless &isa_int($cluster_count) and $cluster_count > 0
97 378 0 unless (delete $attrs{'exact_cluster_count'})
98 0 378 if ($cluster_count >= 4069 and $cluster_count < 4101) { }
0 715 elsif ($cluster_count >= 65509 and $cluster_count < 65541) { }
106 41 41 $cluster_count < 65525 ? :
296 82 $cluster_count < 4085 ? :
109 0 378 if ($bits < $min_bits)
113 0 0 $bits == 16 ? :
124 0 378 if (defined $fat_sector_count) { }
125 0 0 unless $fat_sector_count * $bytes_per_sector >= $fat_byte_count
136 337 41 if ($bits < 32) { }
137 1 336 if (defined $root_dirent_count) { }
138 0 1 unless $root_dirent_count >= 1 and $root_dirent_count < 65535
144 248 88 if $remainder
148 0 337 unless ($reserved_sector_count //= 1) == 1
151 0 41 unless ($root_dirent_count //= 0) == 0
155 0 41 unless &isa_int($reserved_sector_count) and $reserved_sector_count >= 2
160 220 158 if (defined $align_clusters and $align_clusters > $bytes_per_sector)
171 184 36 $cluster_size >= $align_clusters ? :
172 162 58 if (my $ofs = $data_addr & $align - 1)
175 149 13 if ($bits < 32) { }
187 0 378 if keys %attrs
242 0 21564 if $cluster_id < 2
243 0 21564 if $cluster_id > $self->max_cluster_id
254 0 7 if $sector_idx < $self->data_start_sector
256 0 7 if $cluster >= $self->cluster_count
269 0 7 unless $cl_start
271 0 7 unless $self->get_cluster_offset($cl_start) == $offset
274 0 7 unless $cl_start + $cl_cnt <= $self->max_cluster_id + 1
290 262 325 if ($cluster_size >= $align)
291 0 262 if $self->data_start_device_offset & $align - 1
297 0 325 if $self->data_start_device_offset & $cluster_size - 1
305 94 231 !$ofs_of_cl0 ? :
312 0 0 ref $_[0] eq 'SCALAR' ? :
313 0 0 ref $_[1] eq 'HASH' ? :
314 0 0 unless length $$buf_ref >= 512