Branch Coverage

blib/lib/Plack/Middleware/Cached.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
16 0 13 unless $self->cache
18 0 13 unless can_cache($self->cache)
22 1 12 if (ref $self->key and ref $self->key eq 'ARRAY') { }
11 1 elsif (not $self->key) { }
35 12 1 unless $self->set
41 5 24 ref $self->key ? :
43 0 29 unless defined $key
47 11 18 if (defined $object)
49 1 10 if ($mod_env)
62 2 16 if (ref $response eq 'CODE') { }
69 2 3 if ($seen++ and not defined $chunk)
74 3 0 if defined $chunk
90 16 0 if (@options and $options[0])
93 1 15 if ($env_vars)
94 0 1 unless ref $env_vars
109 1 17 blessed $app && $app->can('call') ? :
116 13 0 if blessed $cache and $cache->can('set')