Branch Coverage

blib/lib/Mac/Alias/Parse.pm
Criterion Covered Total %
branch 74 108 68.5


line true false branch
153 0 2 if $recsize > length $bytes or 150 > length $bytes
156 0 2 if $version != 2
181 0 2 unless $appinfo eq "\000\000\000\000"
182 2 0 if $into{'xfrom'} == 65535
183 2 0 if $into{'xto'} == 65535
184 2 0 if $targ{'creator'} eq "\000\000\000\000"
185 2 0 if $targ{'type'} eq "\000\000\000\000"
186 0 2 if $targ{'inode'} eq 4294967295
187 2 0 if $into{'reserved'} eq "\000\000\000\000\000\000\000\000\000\000"
188 2 0 if $vol{'fsid'} eq "\000\000"
189 0 2 if $dir{'inode'} eq 4294967295
192 2 0 if (length $bytes > $extra_ptr)
199 2 20 if $t == 65535
202 2 18 if $l % 2 != 0
205 2 18 if ($t == 0) { }
2 16 elsif ($t == 1) { }
2 14 elsif ($t == 2) { }
0 14 elsif ($t == 9) { }
2 12 elsif ($t == 14) { }
2 10 elsif ($t == 15) { }
2 8 elsif ($t == 16) { }
2 6 elsif ($t == 17) { }
2 4 elsif ($t == 18) { }
2 2 elsif ($t == 19) { }
0 2 elsif ($t == 20) { }
2 0 elsif ($t == 21) { }
235 0 2 if @extra
247 1 0 if exists $alis{'volume'}
248 1 0 if exists $alis{'folder'}
249 1 0 if exists $alis{'target'}
276 0 5 unless defined $fixed[$k]
296 0 1 unless 21 == @fixed and @fixed == @missings
298 8 13 unless defined $fixed[$i]
305 1 3 if ($k eq 'inode_path') { }
1 2 elsif ($k eq 'carbon_path') { }
1 1 elsif ($k eq 'posix_path') { }
1 0 elsif ($k eq 'posix_homedir_length') { }
0 0 elsif ($k eq 'extra') { }
321 1 2 if ($k eq 'long_name') { }
1 1 elsif ($k eq 'posix_path') { }
0 1 elsif ($k eq 'alias') { }
1 0 elsif ($k eq 'createdUTC') { }
0 0 elsif ($k eq '9') { }
338 1 0 if ($k eq 'name') { }
346 1 1 if ($k eq 'long_name') { }
1 0 elsif ($k eq 'createdUTC') { }
356 1 0 if (@extra)
363 1 10 if (length($v) % 2 == 1)
380 0 7 if $count != $bufsz
400 7 2 if ($h == 0) { }
406 7 2 if $l == 0
419 0 7 if (@x = $str =~ /^(\d+):(\d+):(\d+)$/) { }
2 5 elsif ($str =~ /^(\d+)(\.\d+)$/) { }
5 0 elsif ($str =~ /^\d+$/) { }