Branch Coverage

blib/lib/Cache/CacheTester.pm
Criterion Covered Total %
branch 47 94 50.0


line true false branch
68 0 4 unless $cache
79 4 0 $fetched_value eq $value ? :
86 4 0 !defined($fetched_removed_value) ? :
97 0 4 unless $cache
108 4 0 if ($$fetched_value_list_ref[0] eq 'One' and $$fetched_value_list_ref[1] eq 'Two' and $$fetched_value_list_ref[2] eq 'Three') { }
123 4 0 !defined($fetched_removed_value) ? :
134 0 4 unless $cache
149 4 0 defined $fetched_cache ? :
154 4 0 $fetched_value eq $value ? :
176 4 0 if (time - $start < $expires_in) { }
177 4 0 $fetched_value eq $value ? :
188 4 0 !defined($fetched_expired_value) ? :
200 0 4 unless $cache
213 4 0 if ($$fetched_value_list_ref[0] eq 'One' and $$fetched_value_list_ref[1] eq 'Two' and $$fetched_value_list_ref[2] eq 'Three') { }
233 0 4 unless $cache
246 4 0 !defined($fetched_cleared_value) ? :
259 4 0 $empty_size == 0 ? :
270 4 0 $first_size > $empty_size ? :
279 4 0 $second_size > $first_size ? :
294 4 0 $empty_size == 0 ? :
307 4 0 $pre_purge_size > $empty_size ? :
316 4 0 $post_purge_size == $empty_size ? :
327 0 4 unless $cache1
330 0 4 unless my $cache2 = $cache1->new
341 4 0 $fetched_value eq $value ? :
352 0 4 unless $cache
363 4 0 $full_size > 0 ? :
370 4 0 $empty_size == 0 ? :
385 4 0 $empty_size == 0 ? :
398 4 0 $pre_purge_size > $empty_size ? :
407 4 0 !defined($purged_object) ? :
418 0 4 unless my $class = ref $cache
427 4 0 $empty_size == 0 ? :
440 4 0 $pre_purge_size > $empty_size ? :
449 4 0 !defined($purged_object) ? :
474 4 0 if (time - $start < $expires_in) { }
475 4 0 $fetched_value eq $value ? :
486 4 0 !defined($fetched_expired_value) ? :
501 4 0 $empty_size == 0 ? :
517 4 0 $arrays_equal == 1 ? :
545 4 0 if (time - $start < $expires_in) { }
546 4 0 $fetched_value eq $value ? :
559 4 0 !defined($fetched_expired_object) ? :
580 4 0 $ok ? :
595 4 0 if (Arrays_Are_Equal([sort($cache->get_namespaces)], [sort('Default', 'namespace')])) { }
616 0 8 unless @$first_array_ref == @$second_array_ref
620 0 24 if $$first_array_ref[$i] ne $$second_array_ref[$i]