Branch Coverage

blib/lib/Data/Model/Driver/Cache.pm
Criterion Covered Total %
branch 37 52 71.1


line true false branch
29 30 20 unless my $obj = $self->get_from_cache($$id[1])
46 0 27 unless $self->fallback($param{'fallback'})
54 9 76 if $$self{'active_transaction'}
59 76 0 unless ($ret)
61 3 73 unless defined $ret
70 0 24 if $$self{'active_transaction'}
75 6 18 if (scalar keys %cache_keys == scalar keys %{$results;})
82 10 30 if $$results{$key}
87 1 11 unless scalar %{$results;} or scalar %{$fallback_results;}
88 4 13 unless scalar %{$fallback_results;}
91 22 2 if defined $val
101 7 253 if $$self{'active_transaction'}
105 0 0 unless $key and not $columns
109 0 0 unless $ret
121 4 0 if (scalar @{$key;} == scalar @{$schema->key;})
136 20 0 if (scalar @{$old_key;} == scalar @{$schema->key;})
147 10 12 $columns ? :
148 22 0 if ($it)
154 12 10 if exists $$it_opt{'end'} and ref $$it_opt{'end'} eq 'CODE'
163 0 20 if ($key and not $columns and scalar @{$key;} == scalar @{$schema->key;}) { }
167 0 20 unless $self->_delete_cache($schema, $key, $query, %args)
176 42 2 if ($key and not $columns and scalar @{$key;} == scalar @{$schema->key;}) { }
180 0 2 unless $self->_delete_cache(@_)
188 8 84 if ($$self{'active_transaction'}) { }
205 0 9 unless $$self{'active_transaction'}
213 0 5 unless $$self{'active_transaction'}