Branch Coverage

blib/lib/CHI.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
23 24 1006 if @_
29 0 24 if (my(@bad_keys) = grep({not $valid_config_keys{$_};} keys %$config))
75 4 1002 if ($config->{'memoize_cache_objects'} and keys %params <= 1)
78 2 2 if (my $cache_object = $cache_objects->{$cache_object_key})
93 16 988 if (defined $storage)
94 0 16 unless $storage_defaults = $config->{'storage'}{$storage}
106 910 94 if (my $driver = delete $params{'driver'}) { }
114 0 1004 unless defined $driver_class
119 17 987 unless ($driver_class->can("fetch"))
129 182 1820 if (exists $params{$param_name})
133 161 840 if (exists $params{'max_size'} or exists $params{'is_size_aware'})
136 150 851 if (exists $params{'l1_cache'} or exists $params{'mirror_cache'})
139 165 836 if ($params{'is_subcache'})
159 2 996 if ($cache_object_key)