Branch Coverage

blib/lib/Parse/Win32Registry/WinNT/Key.pm
Criterion Covered Total %
branch 62 76 81.5


line true false branch
23 0 452 unless defined $regfile
24 0 452 unless defined $offset
55 1 451 if ($bytes_read != 80)
75 389 62 if $offset_to_parent != 4294967295
77 194 257 if $offset_to_subkey_list != 4294967295
79 45 406 if $offset_to_value_list != 4294967295
81 87 364 if $offset_to_security != 4294967295
83 231 220 if $offset_to_class_name != 4294967295
87 451 0 if ($length > 2147483647)
93 0 451 if ($length < 80)
98 1 450 if ($sig ne 'nk')
104 1 449 if ($bytes_read != $name_length)
109 436 13 if ($flags & 32) { }
116 343 106 defined $parent_key_path ? :
121 231 218 if ($offset_to_class_name != 4294967295)
124 1 230 if ($bytes_read != $class_name_length) { }
190 0 91 if $self->is_root
194 30 61 if (@keys > 2)
210 0 1 if ($offset_to_security == 4294967295)
239 0 0 if (defined $$self{'_class_name'})
254 0 233 if $offset_to_subkey_list == 4294967295 or $$self{'_num_subkeys'} == 0
259 1 232 if ($bytes_read != 8)
308 143 89 if ($sig eq 'lf' or $sig eq 'lh') { }
88 1 elsif ($sig eq 'ri' or $sig eq 'li') { }
321 1 230 if ($bytes_read != $subkey_list_length)
327 112 118 if ($sig eq 'lf') { }
30 88 elsif ($sig eq 'lh') { }
26 62 elsif ($sig eq 'ri') { }
62 0 elsif ($sig eq 'li') { }
341 52 0 if (defined $offsets_ref and ref $offsets_ref eq 'ARRAY')
362 92 43 if ($$self{'_num_subkeys'} > 0)
364 89 3 if (defined $offsets_to_subkeys_ref)
373 313 0 if (defined $subkey)
389 0 289 if $num_values == 0
405 1 288 if ($bytes_read != $value_list_length)
425 145 29 if ($$self{'_num_values'} > 0)
427 144 1 if (defined $offsets_to_values_ref)
436 6109 0 if (defined $value)