blib/lib/Ref/Store.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 13 | 27 | 48.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
207 | 0 | 0 | 13 | %{$self->scalar_lookup;} == 0 and %{$self->reverse;} == 0 |
0 | 0 | 13 | %{$self->scalar_lookup;} == 0 and %{$self->reverse;} == 0 and %{$self->forward;} == 0 | |
356 | 35 | 43 | 1 | $expected and $o |
358 | 0 | 0 | 1 | $existing and $expected != $existing |
364 | 31 | 4 | 43 | not $o and $create_if_needed |
line | l | !l | condition |
---|---|---|---|
77 | 0 | 31 | $options{'keyfunc'} ||= \&Ref::Store::_keyfunc_defl |
78 | 0 | 31 | $options{'unkeyfunc'} ||= sub { $_[0]; } |
188 | 0 | 0 | $vhash ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
143 | 0 | 27 | 0 | $id_prefix ||= $kt |
171 | 0 | 0 | 2 | exists $self->forward->{$key} || exists $self->scalar_lookup->{$key} |