Branch Coverage

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


line true false branch
22 93 1 @_ % 2 == 0 ? :
24 0 82 if (not $args{'cipher'} and $args{'key'})
36 1 93 if $strings
41 94 0 if not &in_global_destruction()
57 1 81 XXX ? :
59 0 82 unless @strings
65 82 3 if (XXX) { }
3 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 3 unless defined $string->{'value'}
80 1 2 if utf8::is_utf8($string->{'value'})
81 1 2 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 30 if (XXX) { }
30 0 elsif (XXX) { }
150 0 1 if (my $encoding = $item->{'enc'})
159 1 29 if (my $encoding = $item->{'enc'})
169 27 4 if (my $filter = $item->{'filter'})
189 0 91 if (my $encoding = $item->{'enc'})