Branch Coverage

blib/lib/Jifty/DBI/Record/Cachable.pm
Criterion Covered Total %
branch 27 38 71.0


line true false branch
61 4 11 unless exists $_CACHES{$cache}
85 5 15 unless exists $_CACHES{$cache}
105 1 0 if (ref $self) { }
112 1 0 if $rvalue and not $self->_is_in_transaction
117 0 0 if $self->id and not $self->_is_in_transaction
133 11 0 if (ref $class) { }
141 4 7 if ($self->_fetch($alt_key))
142 0 4 if ($class) { }
152 7 0 if ($rvalue and not $self->_is_in_transaction)
159 0 7 if ($class) { }
220 8 3 unless ($data)
222 1 7 if $cache_key
225 7 4 unless $data
270 1 10 if (not defined $value) { }
1 9 elsif (ref $value eq 'HASH') { }
0 9 elsif (blessed $value and $value->isa('Jifty::DBI::Record')) { }
273 1 0 lc($key) . ($$value{'operator'} || '=') . defined($$value{'value'}) ? :
307 8 7 unless ($$self{'_jifty_cache_pkey'})
312 0 8 unless defined $value