Condition Coverage

blib/lib/Catalyst/Plugin/PageCache.pm
Criterion Covered Total %
condition 37 74 50.0


and 2 conditions

line l !l condition
286 24 7 not $c->_cache_page and scalar @{$pc_config->{'auto_cache'};}

and 3 conditions

line !l l&&!r l&&r condition
32 21 0 0 ref $expires and $expires->can('epoch')
95 13 0 13 $options->{'cache_seconds'} and $options->{'cache_seconds'} > 0
127 44 2 2 $hook and not $c->$hook
131 46 0 0 $pc_config->{'auto_check_user'} and $c->can('user_exists')
46 0 0 $pc_config->{'auto_check_user'} and $c->can('user_exists') and $c->user_exists
145 0 15 3 $data->{'expire_time'} and $data->{'expire_time'} <= time
261 0 6 0 $c->res->status and $c->res->status == 304
274 44 2 2 $hook and not $c->$hook
278 46 0 0 $pc_config->{'auto_check_user'} and $c->can('user_exists')
46 0 0 $pc_config->{'auto_check_user'} and $c->can('user_exists') and $c->user_exists
390 11 0 0 $c->config->{'page_cache'} and not $c->config->{'Plugin::PageCache'}

or 2 conditions

line l !l condition
61 2 0 $cache->get($index_page_key) || {}
163 2 0 $cache->get($index_page_key) || {}
334 26 0 $c->res->body || undef
26 0 [$c->res->content_type] || undef
0 26 $c->res->content_encoding || undef
375 15 11 $cache->get($index_page_key) || {}
394 11 0 $c->config->{'Plugin::PageCache'} ||= {}
396 0 11 $pc_config->{'auto_cache'} ||= []
397 0 11 $pc_config->{'expires'} ||= 300
398 0 11 $pc_config->{'cache_headers'} ||= 0
399 0 11 $pc_config->{'set_http_headers'} ||= 0
400 0 11 $pc_config->{'busy_lock'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
125 0 0 48 $pc_config->{'cache_dispatch_hook'} || $pc_config->{'cache_hook'}
272 0 0 48 $pc_config->{'cache_finalize_hook'} || $pc_config->{'cache_hook'}
334 3 23 0 $options->{'last_modified'} || $headers->last_modified || $now
401 0 0 11 $pc_config->{'debug'} ||= $c->debug
427 0 0 0 $cache->isa('Cache::Memcached') or $cache->isa('Cache::FastMmap')