Condition Coverage

blib/lib/HTTP/Cookies.pm
Criterion Covered Total %
condition 54 71 76.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 41 50 14 not $first_param and lc $k eq 'expires'
41 48 2 not $first_param and lc($k) =~ /^(?:version|discard|ns-cookie)/
317 51 2 23 defined $domain and $domain ne $req_host
53 6 17 defined $domain and $domain ne $req_host and $domain ne ".$req_host"
319 17 0 0 not $domain =~ /\./ and $domain ne 'local'
331 11 3 2 $hostpre =~ /\./ and not $ns_cookie
341 23 1 49 defined $path and $path ne ''
344 29 16 4 not $ns_cookie and substr($req_path, 0, length $path) ne $path
396 0 0 77 defined $path && $path =~ m[^/] && defined $key
417 6 60 3 defined $rest and %$rest
572 30 18 0 $discard and $skip_discard

or 2 conditions

line l !l condition
37 70 0 shift() || (return)
193 69 0 shift() || (return)
435 2 0 $args{'file'} || (return)
447 0 27 shift() || $self->{'file'} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
198 32 30 7 @set or @ns_set
299 31 2 201 $k eq 'discard' or $k eq 'secure'
396 0 0 77 not defined $path && $path =~ m[^/] && defined $key or $key =~ /^\$/
529 3 0 3 $_[9] or not $_[8]
620 4 5 26 $x eq '2F' || $x eq '25'