Branch Coverage

blib/lib/File/KDBX/Cipher.pm
Criterion Covered Total %
branch 17 36 47.2


line true false branch
17 0 0 unless &Scalar::Util::blessed($_[0])
18 0 0 unless &Scalar::Util::blessed($_[0])
19 0 240 unless &Scalar::Util::blessed($_[0])
20 0 240 unless &Scalar::Util::blessed($_[0])
27 0 240 unless $_[0]{'algorithm'}
34 48 102 if defined $args{'uuid'}
35 102 0 if defined $args{'stream_id'}
45 0 48 unless $args{'key'}
46 0 48 unless $args{'iv'}
50 0 48 unless my $cipher = $CIPHERS{$uuid}
64 0 102 unless $args{'key'}
66 0 102 unless my $cipher = $CIPHERS{$id}
78 241 0 if not &in_global_destruction()
112 18 54 &looks_like_number($id) ? :
113 72 0 unless $package =~ s/^\+// or $package =~ /^\Q$class::\E/
115 0 0 &looks_like_number($_) ? :
117 0 72 if ($blacklist{$id} or $blacklist{$package})
122 0 72 if (defined $CIPHERS{$id})