| blib/lib/ORM/Cache.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 10 | 28 | 35.7 |
| line | true | false | branch |
|---|---|---|---|
| 42 | 0 | 5 | $@ ? : |
| 61 | 5 | 0 | if $self->size |
| 80 | 3 | 4 | unless defined $hit |
| 82 | 1 | 6 | if $obj |
| 98 | 27 | 0 | if ($id and not $$self{'hash'}{$id}) |
| 100 | 27 | 0 | if ($use_weaken) { } |
| 102 | 27 | 0 | if ($$self{'size'}) |
| 112 | 0 | 0 | if ($$self{'size'}) |
| 115 | 0 | 0 | if $$slot |
| 130 | 6 | 0 | if $use_weaken and $obj and $obj->id |
| 144 | 0 | 0 | if $new_size < 0 |
| 146 | 0 | 0 | if ($new_size > $self->size) { } |
| 0 | 0 | elsif ($new_size < $self->size) { } | |
| 154 | 0 | 0 | if $$self{'ptr'} >= $new_size |