Branch Coverage

blib/lib/File/KDBX/Loader/V3.pm
Criterion Covered Total %
branch 38 52 73.0


line true false branch
36 0 160 unless &read_all($fh, my $buf, 3)
40 160 0 if (0 < $size)
41 0 160 unless &read_all($fh, $val, $size)
46 16 144 if ($type == 0) { }
0 144 elsif ($type == 1) { }
16 128 elsif ($type == 2) { }
16 112 elsif ($type == 3) { }
16 96 elsif ($type == 4) { }
16 80 elsif ($type == 5) { }
16 64 elsif ($type == 6) { }
16 48 elsif ($type == 7) { }
16 32 elsif ($type == 8) { }
16 16 elsif ($type == 9) { }
16 0 elsif ($type == 10) { }
0 0 elsif ($type == 11 or $type == 12) { }
53 0 16 unless $size == 16
59 0 16 unless $size == 32
87 160 0 wantarray ? :
105 0 80 unless defined $kdbx->headers->{$field}
131 0 16 unless &read_all($fh, my $start_bytes, 32)
134 3 13 unless $start_bytes eq $expected_start_bytes
143 12 1 if ($compress == 1) { }
0 1 elsif ($compress != 0) { }
145 0 12 unless $fh = "IO::Uncompress::Gunzip"->new($fh)
156 11 2 if (my $header_hash = $kdbx->meta->{'header_hash'})
158 1 10 unless $header_hash eq $got_header_hash