Condition Coverage

blib/lib/HTTP/Cookies.pm
Criterion Covered Total %
condition 57 74 77.0


and 3 conditions

line !l l&&!r l&&r condition
60 57 0 0 $self->{'delayload'} and defined $cookies->{'//+delayload'}
79 73 1 1 $secure and not $secure_request
82 56 18 0 $expires and $expires < $now
102 43 31 0 $version > 0 and $netscape_only
119 71 3 0 $val =~ /\W/ and $version
241 42 51 14 not $first_param and lc $k eq 'expires'
42 50 1 not $first_param and lc $k eq 'max-age'
42 48 2 not $first_param and lc($k) =~ /^(?:version|discard|ns-cookie)/
320 52 2 23 defined $domain and $domain ne $req_host
54 6 17 defined $domain and $domain ne $req_host and $domain ne ".$req_host"
322 17 0 0 not $domain =~ /\./ and $domain ne 'local'
334 11 3 2 $hostpre =~ /\./ and not $ns_cookie
344 24 1 49 defined $path and $path ne ''
347 29 16 4 not $ns_cookie and substr($req_path, 0, length $path) ne $path
399 0 0 78 defined $path && $path =~ m[^/] && defined $key
420 6 61 3 defined $rest and %$rest
575 31 18 0 $discard and $skip_discard

or 2 conditions

line l !l condition
37 70 0 shift() || (return)
193 70 0 shift() || (return)
438 2 0 $args{'file'} || (return)
450 0 28 shift() || $self->{'file'} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
198 32 31 7 @set or @ns_set
302 31 2 203 $k eq 'discard' or $k eq 'secure'
399 0 0 78 not defined $path && $path =~ m[^/] && defined $key or $key =~ /^\$/
532 3 0 3 $_[9] or not $_[8]
623 4 5 26 $x eq '2F' || $x eq '25'