Condition Coverage

blib/lib/HTTP/Caching.pm
Criterion Covered Total %
condition 20 28 71.4


and 2 conditions

line l !l condition
906 15 1 $rqst_presented->header('Pragma') and scalar $rqst_presented->header('Pragma') =~ /no-cache/

and 3 conditions

line !l l&&!r l&&r condition
975 10 0 0 &any(sub { lc $_ eq 'proxy-revalidate'; } , @resp_directives) and $self->is_shared

or 2 conditions

line l !l condition
402 3 6 $self->cache_meta->get($rqst_key) || {}
605 1 28 scalar $rqst->header('cache-control') || ''
608 11 18 scalar $resp->header('cache-control') || ''
868 4 0 scalar $resp_stored->header('Vary') || ''
872 2 2 $rqst_presented->header($header) || ''
873 3 1 $rqst_associated->header($header) || ''
897 1 16 scalar $rqst_presented->header('cache-control') || ''
927 4 11 scalar $resp_stored->header('cache-control') || ''
958 0 10 scalar $resp_stored->header('cache-control') || ''
991 0 10 scalar $rqst_presented->header('cache-control') || ''

or 3 conditions

line l !l&&r !l&&!r condition
293 0 0 0 $response->is_success or $response->is_redirect