Branch Coverage

blib/lib/CHI/t/Driver.pm
Criterion Covered Total %
branch 35 74 47.3


line true false branch
49 175 30 $_ == 1 ? :
175 30 $_ == 1 ? :
58 415 0 if $self->supports_clear
121 16 88 ref $keys{$_} ? :
306 8 0 unless $ENV{"AUTHOR_TESTING"}
339 8 0 unless $ENV{"AUTHOR_TESTING"}
362 0 0 if ($set_option eq "3 seconds")
378 8 0 unless $ENV{"AUTHOR_TESTING"}
497 16 16 $expect_expire ? :
540 3154 4046 unless (defined $cache->get($key))
573 7 70 $keyname eq "utf8" ? :
14 77 $keyname eq "arrayref" || $keyname eq "hashref" ? :
595 7 0 unless (can_load("Data::Serializer"))
631 0 0 $mode eq "hash" ? :
0 0 $mode eq "string" ? :
685 8 0 if ($self->supports_get_namespaces) { }
796 0 6 unless $self->supports_clear
878 0 6 unless $self->supports_clear
1169 8 0 if ($self->supports_clear) { }
1247 6 0 unless $ENV{"AUTHOR_TESTING"}
1303 0 0 unless open my $fh2, "<", "$log_dir/log2"
1512 8 0 unless $ENV{"AUTHOR_TESTING"}
1607 35 0 if (abs $value - $expected <= $margin) { }
1756 8 8 if ($iter)
1804 7 1 unless $self->supports_expires_on_backend
1817 1 1 if ($expires_on_backend) { }
1917 6 6 if ($keyname eq "medium") { }
1932 5 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) { }