Branch Coverage

lib/Mojolicious/Plugin/CHI.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
13 5 5 if (my $config_param = $mojo->config('CHI'))
22 4 6 if ($mojo->can('chi_handles')) { }
45 1 0 if defined $log
52 0 17 unless ref $cache_param and ref $cache_param eq 'HASH'
55 4 13 if (exists $caches->{$name})
61 12 1 if ($ns)
62 8 4 unless $name eq 'default'
76 0 13 unless $cache
83 6 4 unless (exists $mojo->renderer->helpers->{'chi'})
97 4 42 unless $cache