blib/lib/Hash/DefHash.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 49 | 69 | 71.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
43 | 5 | 0 | 1 | &blessed($_[0]) and $_[0]->isa('Hash::DefHash') |
187 | 8 | 12 | 2 | defined $p_prop and $p_prop =~ /\A_/ |
188 | 10 | 6 | 4 | defined $p_attr and $p_attr =~ /(?:\A|\.)_/ |
189 | 8 | 4 | 4 | defined $p_attr_wo_prop and $p_attr_wo_prop =~ /(?:\A|\.)_/ |
line | l | !l | condition |
---|---|---|---|
52 | 62 | 0 | $hash //= {} |
55 | 19 | 43 | $opts{'check'} // 1 |
89 | 4 | 2 | $props{$p_prop} //= {} |
100 | 1 | 1 | $props{''} //= {} |
200 | 5 | 1 | $prop //= '' |
211 | 36 | 20 | $p_prop //= '' |
231 | 11 | 0 | $prop //= '' |
241 | 4 | 0 | $prop //= '' |
250 | 11 | 0 | $prop //= '' |
259 | 5 | 0 | $prop //= '' |
274 | 4 | 0 | $prop //= '' |
294 | 4 | 0 | $prop //= '' |
311 | 2 | 0 | $prop //= '' |
334 | 0 | 0 | $self->get_prop('defhash_v') // 1 |
339 | 0 | 0 | $self->get_prop('v') // 1 |
348 | 2 | 0 | (($self->get_prop('default_lang') // $par) // $ENV{'LANG'}) // 'en_US' |
376 | 0 | 10 | $opts //= {} |
380 | 0 | 10 | $opts->{'mark_different_lang'} // 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
115 | 5 | 0 | 6 | defined $p_attr or $p_lang |
5 | 4 | 2 | defined $p_attr or $p_lang or defined $p_attr_wo_prop | |
190 | 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 | |
348 | 18 | 15 | 2 | $self->get_prop('default_lang') // $par |
33 | 2 | 0 | ($self->get_prop('default_lang') // $par) // $ENV{'LANG'} | |
379 | 7 | 3 | 0 | $lang //= $deflang |