blib/lib/Hash/DefHash.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 49 | 69 | 71.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
41 | 5 | 0 | 1 | &blessed($_[0]) and $_[0]->isa('Hash::DefHash') |
185 | 8 | 12 | 2 | defined $p_prop and $p_prop =~ /\A_/ |
186 | 10 | 6 | 4 | defined $p_attr and $p_attr =~ /(?:\A|\.)_/ |
187 | 8 | 4 | 4 | defined $p_attr_wo_prop and $p_attr_wo_prop =~ /(?:\A|\.)_/ |
line | l | !l | condition |
---|---|---|---|
50 | 62 | 0 | $hash //= {} |
53 | 19 | 43 | $opts{'check'} // 1 |
87 | 4 | 2 | $props{$p_prop} //= {} |
98 | 1 | 1 | $props{''} //= {} |
198 | 5 | 1 | $prop //= '' |
209 | 36 | 20 | $p_prop //= '' |
229 | 11 | 0 | $prop //= '' |
239 | 4 | 0 | $prop //= '' |
248 | 11 | 0 | $prop //= '' |
257 | 5 | 0 | $prop //= '' |
272 | 4 | 0 | $prop //= '' |
292 | 4 | 0 | $prop //= '' |
309 | 2 | 0 | $prop //= '' |
332 | 0 | 0 | $self->get_prop('defhash_v') // 1 |
337 | 0 | 0 | $self->get_prop('v') // 1 |
346 | 2 | 0 | (($self->get_prop('default_lang') // $par) // $ENV{'LANG'}) // 'en_US' |
374 | 0 | 10 | $opts //= {} |
378 | 0 | 10 | $opts->{'mark_different_lang'} // 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
113 | 5 | 0 | 6 | defined $p_attr or $p_lang |
5 | 4 | 2 | defined $p_attr or $p_lang or defined $p_attr_wo_prop | |
188 | 6 | 0 | 6 | defined $p_attr or defined $p_lang |
6 | 4 | 2 | defined $p_attr or defined $p_lang or defined $p_attr_wo_prop | |
346 | 18 | 15 | 2 | $self->get_prop('default_lang') // $par |
33 | 2 | 0 | ($self->get_prop('default_lang') // $par) // $ENV{'LANG'} | |
377 | 7 | 3 | 0 | $lang //= $deflang |