Branch Coverage

blib/lib/CHI/t/Driver.pm
Criterion Covered Total %
branch 32 74 43.2


line true false branch
46 151 25 $_ == 1 ? :
151 25 $_ == 1 ? :
58 367 0 if $self->supports_clear
120 14 77 ref $keys{$_} ? :
305 7 0 unless $ENV{'AUTHOR_TESTING'}
338 7 0 unless $ENV{'AUTHOR_TESTING'}
362 0 0 if ($set_option eq '3 seconds')
377 7 0 unless $ENV{'AUTHOR_TESTING'}
497 14 14 $expect_expire ? :
540 2755 3545 unless (defined $cache->get($key))
573 4 40 $keyname eq 'utf8' ? :
8 44 $keyname eq 'arrayref' || $keyname eq 'hashref' ? :
595 6 0 unless (can_load('Data::Serializer'))
631 0 0 $mode eq 'hash' ? :
0 0 $mode eq 'string' ? :
685 5 0 if ($self->supports_get_namespaces) { }
796 0 5 unless $self->supports_clear
878 0 5 unless $self->supports_clear
1169 7 0 if ($self->supports_clear) { }
1246 5 0 unless $ENV{'AUTHOR_TESTING'}
1303 0 0 unless open my $fh2, '<', "$log_dir/log2"
1512 7 0 unless $ENV{'AUTHOR_TESTING'}
1607 30 0 if (abs $value - $expected <= $margin) { }
1756 7 7 if ($iter)
1804 7 0 unless $self->supports_expires_on_backend
1817 0 0 if ($expires_on_backend) { }
1917 5 5 if ($keyname eq 'medium') { }
1932 4 0 unless $ENV{'AUTHOR_TESTING'}
1933 0 0 if $self->new_cache->short_driver_name eq 'File'
1960 0 0 if (my $pid = fork) { }
1979 0 0 if (defined $value)
1980 0 0 if (defined(my $p = $valid_values{$value})) { }
1989 0 0 unless (grep {not $parent_cache->get("done$_");} 0 .. $num_procs)
1992 0 0 if (time >= $parent_end_time)
1997 0 0 unless ($error)
1998 0 0 if (my($p) = grep({not $seen{$_};} 0 .. $num_procs))
2003 0 0 if ($error) { }