Branch Coverage

lib/Mojolicious/Plugin/CHI/chi.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
20 2 16 unless $command
27 2 14 if ($command eq 'list') { }
6 8 elsif ($command eq 'purge' or $command eq 'clear') { }
8 0 elsif ($command eq 'remove' or $command eq 'expire') { }
44 2 4 unless $chi
47 0 4 if ($chi->short_driver_name =~ /^(?:Raw)?Memory$/)
56 2 2 $command eq 'clear' ? :
67 8 0 if ($key)
72 2 6 unless $chi
75 0 6 if ($chi->short_driver_name =~ /^(?:Raw)?Memory$/)
83 4 2 if ($chi->$command($key)) { }
98 0 0 if print $self->usage