Condition Coverage

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


and 2 conditions

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

and 3 conditions

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

or 2 conditions

line l !l condition
442 3 6 $self->cache_meta->get($rqst_key) || {}
645 1 28 scalar $rqst->header('cache-control') || ''
648 11 18 scalar $resp->header('cache-control') || ''
908 4 0 scalar $resp_stored->header('Vary') || ''
912 2 2 $rqst_presented->header($header) || ''
913 3 1 $rqst_associated->header($header) || ''
937 1 16 scalar $rqst_presented->header('cache-control') || ''
967 4 11 scalar $resp_stored->header('cache-control') || ''
998 0 10 scalar $resp_stored->header('cache-control') || ''
1031 0 10 scalar $rqst_presented->header('cache-control') || ''

or 3 conditions

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