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 238 unless &Scalar::Util::blessed($_[0])
20 0 238 unless &Scalar::Util::blessed($_[0])
27 0 238 unless $_[0]{'algorithm'}
34 41 101 if defined $args{'uuid'}
35 101 0 if defined $args{'stream_id'}
45 0 41 unless $args{'key'}
46 0 41 unless $args{'iv'}
50 0 41 unless my $cipher = $CIPHERS{$uuid}
64 0 101 unless $args{'key'}
66 0 101 unless my $cipher = $CIPHERS{$id}
78 233 0 if not &in_global_destruction()
112 16 48 &looks_like_number($id) ? :
113 64 0 unless $package =~ s/^\+// or $package =~ /^\Q$class::\E/
115 0 0 &looks_like_number($_) ? :
117 0 64 if ($blacklist{$id} or $blacklist{$package})
122 0 64 if (defined $CIPHERS{$id})