Branch Coverage

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


line true false branch
23 24 890 if @_
29 0 24 if (my(@bad_keys) = grep({not $valid_config_keys{$_};} keys %$config))
75 4 886 if ($$config{'memoize_cache_objects'} and keys %params <= 1)
78 2 2 if (my $cache_object = $$cache_objects{$cache_object_key})
93 16 872 if (defined $storage)
94 0 16 unless $storage_defaults = $$config{'storage'}{$storage}
106 805 83 if (my $driver = delete $params{'driver'}) { }
114 0 888 unless defined $driver_class
119 15 873 unless ($driver_class->can('fetch'))
129 182 1588 if (exists $params{$param_name})
133 140 745 if (exists $params{'max_size'} or exists $params{'is_size_aware'})
136 138 747 if (exists $params{'l1_cache'} or exists $params{'mirror_cache'})
139 146 739 if ($params{'is_subcache'})
159 2 880 if ($cache_object_key)