Branch Coverage

blib/lib/Class/Cache.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
194 3 8 if (ref $input_config eq 'HASH') { }
208 7 12 unless $$current_config{'lazy'}
228 1 12 if (ref $$current_config{'new'} eq 'CODE') { }
0 12 elsif (ref $$default_parms{'new'} eq 'CODE') { }
229 1 0 if ($self->is_lazy($current_config)) { }
241 0 0 if ($self->is_lazy($current_config)) { }
252 1 11 if (exists $$current_config{'pkg'}) { }
0 11 elsif (exists $$default_parms{'pkg'}) { }
257 12 0 if (exists $$current_config{'new'}) { }
0 0 elsif (exists $$default_parms{'new'}) { }
264 12 0 exists $$current_config{'args'} ? :
268 0 8 if $@
272 7 5 if ($self->is_lazy($current_config)) { }
320 6 0 if ($$a{'expires'} eq 'on_get')
332 4 2 if ($self->is_lazy($a))
333 4 0 if (ref $retval eq 'CODE')