Condition Coverage

blib/lib/File/KDBX/Dumper/V4.pm
Criterion Covered Total %
condition 15 39 38.4


and 3 conditions

line !l l&&!r l&&r condition
52 0 5 2 defined $headers->{'public_custom_data'} and keys %{$$headers{"public_custom_data"};}
128 3 0 1 &looks_like_number($variant) and ($variant + 0) =~ /^\d+$/
134 1 0 0 $b[0] and $neg
327 0 0 0 defined $binary->{'ref'} and defined $kdbx->binaries->{$binary->{'ref'}}

or 2 conditions

line l !l condition
23 0 7 $_[0]{'_binaries_written'} //= scalar &$default($_[0])
62 37 7 shift() // ""
147 9 0 shift() || {}
148 7 2 shift() || {}
290 14 7 shift() // ""
355 0 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
65 0 0 0 $type == "inner_random_stream_id" or $type == "inner_random_stream_key"
0 0 0 $type == "inner_random_stream_id" or $type == "inner_random_stream_key" or $type == "transform_seed"
0 0 0 $type == "inner_random_stream_id" or $type == "inner_random_stream_key" or $type == "transform_seed" or $type == "transform_rounds"
0 0 0 $type == "inner_random_stream_id" or $type == "inner_random_stream_key" or $type == "transform_seed" or $type == "transform_rounds" or $type == "stream_start_bytes"
157 27 5 0 $types->{$key} // $self->_intuit_variant_type($val)