Condition Coverage

blib/lib/HTTP/Cache/Transparent.pm
Criterion Covered Total %
condition 17 37 45.9


and 3 conditions

line !l l&&!r l&&r condition
194 0 0 3 $r->method eq 'GET' and not defined $r->header('If-Modified-Since')
0 0 3 $r->method eq 'GET' and not defined $r->header('If-Modified-Since') and not defined $content_cb
236 1 1 1 defined $meta->{'X-HCT-LastUpdated'} and $noupdate > time - $meta->{'X-HCT-LastUpdated'}
255 1 0 0 defined $meta->{'X-HCT-LastUpdated'} and not &{$approvecontent;}($res)
289 1 0 0 defined $meta->{'MD5'} and md5_hex($content) eq $meta->{'MD5'}
426 1 0 1 defined $basepath and -d $basepath
439 0 1 0 defined $age and $age * 24 > $maxage

or 2 conditions

line l !l condition
133 0 1 $arg->{'MaxAge'} || 192
134 0 1 $arg->{'Verbose'} || 0
135 1 0 $arg->{'NoUpdate'} || 0
136 0 1 $arg->{'ApproveContent'} || sub { return 1; }
346 2 0 &status_message(scalar $res->code) || 'Unknown code'

or 3 conditions

line l !l&&r !l&&!r condition
222 2 0 0 not defined $r->header('Range') or $r->header('Range') eq $meta->{'Range'}
299 1 0 0 $res->code == 200 or $res->code == 206