Condition Coverage

blib/lib/Mojo/UserAgent/CookieJar.pm
Criterion Covered Total %
condition 27 29 93.1


and 3 conditions

line !l l&&!r l&&r condition
51 119 4 6 $host ne $domain and !($host =~ /\Q.$domain\E$/u) || $host =~ /\.\d+$/u
75 43 506 1 $cookie->host_only and $host ne $cookie->domain
82 543 1 1 $cookie->secure and $url->protocol ne "https"

or 2 conditions

line l !l condition
22 135 4 $cookie->value // ""
25 137 1 $cookie->domain // ""
27 134 1 $cookie->name // ""
28 101 33 $self->{'jar'}{$domain} //= []

or 3 conditions

line l !l&&r !l&&!r condition
51 4 3 3 !($host =~ /\Q.$domain\E$/u) || $host =~ /\.\d+$/u
54 57 65 0 $cookie->path // $url->path->to_dir->to_abs_string
105 379 0 74 $cookie->path ne $path || $cookie->name ne $name || $cookie->domain ne $domain
108 464 35 167 $_[0] eq "/" or $_[0] eq $_[1]