Branch Coverage

blib/lib/File/KDBX/Dumper/XML.pm
Criterion Covered Total %
branch 65 108 60.1


line true false branch
22 0 12 unless &Scalar::Util::blessed($_[0])
23 0 12 if $#_
0 7 unless &Scalar::Util::blessed($_[0])
24 0 7 if $#_
0 2 unless &Scalar::Util::blessed($_[0])
25 0 2 if $#_
0 256 unless &Scalar::Util::blessed($_[0])
26 0 256 if $#_
77 8 7 $self->kdbx->version < 262144 && defined $meta->{'header_hash'} ? :
7 8 $self->kdbx->version >= 262144 ? :
8 7 $self->kdbx->version < 262144 || $self->binaries ? :
140 0 3 if (defined $binary->{'ref'} and defined $kdbx->binaries->{$binary->{'ref'}})
144 0 3 unless (defined $binary->{'value'})
150 1 2 if (defined $written->{$hash}) { }
156 0 2 if $binary->{'protect'}
173 0 2 if (utf8::is_utf8($$value))
183 2 0 if ($try_compress)
187 0 2 if ($should_compress or length $compressed < length $$value)
194 0 2 if ($protect)
210 0 0 unless $icon->{'uuid'} and $icon->{'data'}
213 0 0 262145 <= $self->kdbx->version ? :
233 0 10 unless defined $item->{'key'}
235 0 10 262145 <= $self->kdbx->version ? :
252 15 0 if (my $group = $kdbx->root)
277 0 23 262145 <= $self->kdbx->version ? :
0 23 defined $group->{'custom_icon_uuid'} ? :
9 14 262144 <= $self->kdbx->version ? :
0 23 262145 <= $self->kdbx->version ? :
314 0 9 defined $entry->{'custom_icon_uuid'} ? :
0 9 262145 <= $self->kdbx->version ? :
327 0 9 unless $entry->{'strings'}
338 0 9 unless $entry->{'binaries'}
340 0 3 if (defined $binary->{'ref'} and defined $kdbx->binaries->{$binary->{'ref'}})
344 0 3 unless (defined $binary->{'value'})
354 3 0 if (defined $written->{$hash}) { }
360 0 0 if $binary->{'protect'}
370 2 7 262144 <= $self->kdbx->version ? :
376 6 3 if (not $in_history)
377 2 4 if (my(@history) = @{$entry->history;})
398 0 9 unless $autotype->{'associations'}
442 12 33 if ($protect) { }
443 12 0 if ($self->allow_protection) { }
445 6 6 if (utf8::is_utf8($value))
463 45 0 if defined $value
472 0 15 unless $objects
495 105 943 if (ref $type eq 'CODE') { }
500 12 931 unless exists $hash->{$key}
502 104 827 if $type eq "datetime" and $self->compress_datetimes
513 16 121 if not defined $_[0] or ref $_[0] and not defined $_->[0]
514 0 121 ref $_[0] ? :
519 73 93 $_ ? :
536 0 0 $_ ? :
541 0 144 unless &looks_like_number($_) or &isdual($_)
546 0 438 unless defined $_[0]