Branch Coverage

blib/lib/Cache/CacheTester.pm
Criterion Covered Total %
branch 44 88 50.0


line true false branch
68 0 2 unless $cache
79 2 0 $fetched_value eq $value ? :
86 2 0 !defined($fetched_removed_value) ? :
97 0 2 unless $cache
108 2 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 2 0 !defined($fetched_removed_value) ? :
134 0 2 unless $cache
149 2 0 defined $fetched_cache ? :
154 2 0 $fetched_value eq $value ? :
175 2 0 $fetched_value eq $value ? :
182 2 0 !defined($fetched_expired_value) ? :
194 0 2 unless $cache
207 2 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 2 unless $cache
240 2 0 !defined($fetched_cleared_value) ? :
253 2 0 $empty_size == 0 ? :
264 2 0 $first_size > $empty_size ? :
273 2 0 $second_size > $first_size ? :
288 2 0 $empty_size == 0 ? :
301 2 0 $pre_purge_size > $empty_size ? :
310 2 0 $post_purge_size == $empty_size ? :
321 0 2 unless $cache1
324 0 2 unless my $cache2 = $cache1->new
335 2 0 $fetched_value eq $value ? :
346 0 2 unless $cache
357 2 0 $full_size > 0 ? :
364 2 0 $empty_size == 0 ? :
379 2 0 $empty_size == 0 ? :
392 2 0 $pre_purge_size > $empty_size ? :
401 2 0 !defined($purged_object) ? :
412 0 2 unless my $class = ref $cache
421 2 0 $empty_size == 0 ? :
434 2 0 $pre_purge_size > $empty_size ? :
443 2 0 !defined($purged_object) ? :
467 2 0 $fetched_value eq $value ? :
474 2 0 !defined($fetched_expired_value) ? :
489 2 0 $empty_size == 0 ? :
505 2 0 $arrays_equal == 1 ? :
532 2 0 $fetched_value eq $value ? :
541 2 0 !defined($fetched_expired_object) ? :
562 2 0 $ok ? :
577 2 0 if (Arrays_Are_Equal([sort($cache->get_namespaces)], [sort('Default', 'namespace')])) { }
598 0 4 unless @$first_array_ref == @$second_array_ref
602 0 12 if $$first_array_ref[$i] ne $$second_array_ref[$i]