Branch Coverage

blib/lib/File/KDBX/Safe.pm
Criterion Covered Total %
branch 36 56 64.2


line true false branch
22 93 2 @_ % 2 == 0 ? :
24 0 83 if (not $args{'cipher'} and $args{'key'})
36 2 93 if $strings
41 95 0 if not &in_global_destruction()
57 2 81 XXX ? :
59 0 83 unless @strings
65 82 6 if (XXX) { }
6 0 elsif (XXX) { }
66 0 82 unless defined $$string
67 0 82 if utf8::is_utf8($$string)
68 0 82 if (my $encoding = $item->{'enc'}) { }
79 0 6 unless defined $string->{'value'}
80 1 5 if utf8::is_utf8($string->{'value'})
81 1 5 if (my $encoding = $item->{'enc'}) { }
107 27 0 XXX ? :
108 0 27 XXX ? :
110 0 27 unless @strings
114 27 0 if defined $filter
115 0 27 if (XXX) { }
27 0 elsif (XXX) { }
116 0 0 unless defined $$string
121 0 27 unless defined $string->{'value'}
148 1 33 if (XXX) { }
33 0 elsif (XXX) { }
150 0 1 if (my $encoding = $item->{'enc'})
159 1 32 if (my $encoding = $item->{'enc'})
169 27 7 if (my $filter = $item->{'filter'})
189 0 91 if (my $encoding = $item->{'enc'})