Branch Coverage

blib/lib/Cache/CacheTester.pm
Criterion Covered Total %
branch 44 88 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 ? :
175 4 0 $fetched_value eq $value ? :
182 4 0 !defined($fetched_expired_value) ? :
194 0 4 unless $cache
207 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') { }
227 0 4 unless $cache
240 4 0 !defined($fetched_cleared_value) ? :
253 4 0 $empty_size == 0 ? :
264 4 0 $first_size > $empty_size ? :
273 4 0 $second_size > $first_size ? :
288 4 0 $empty_size == 0 ? :
301 4 0 $pre_purge_size > $empty_size ? :
310 4 0 $post_purge_size == $empty_size ? :
321 0 4 unless $cache1
324 0 4 unless my $cache2 = $cache1->new
335 4 0 $fetched_value eq $value ? :
346 0 4 unless $cache
357 4 0 $full_size > 0 ? :
364 4 0 $empty_size == 0 ? :
379 4 0 $empty_size == 0 ? :
392 4 0 $pre_purge_size > $empty_size ? :
401 4 0 !defined($purged_object) ? :
412 0 4 unless my $class = ref $cache
421 4 0 $empty_size == 0 ? :
434 4 0 $pre_purge_size > $empty_size ? :
443 4 0 !defined($purged_object) ? :
467 4 0 $fetched_value eq $value ? :
474 4 0 !defined($fetched_expired_value) ? :
489 4 0 $empty_size == 0 ? :
505 4 0 $arrays_equal == 1 ? :
532 4 0 $fetched_value eq $value ? :
541 4 0 !defined($fetched_expired_object) ? :
562 4 0 !defined(@$) ? :
577 4 0 if (Arrays_Are_Equal([sort($cache->get_namespaces)], [sort('Default', 'namespace')])) { }
598 0 8 unless @$first_array_ref == @$second_array_ref
602 0 24 if $$first_array_ref[$i] ne $$second_array_ref[$i]