Branch Coverage

blib/lib/MojoX/UserAgent/CookieJar.pm
Criterion Covered Total %
branch 14 30 46.6


line true false branch
18 0 1 ref $_[0] eq 'ARRAY' ? :
22 0 3 unless $cookie->domain
28 3 0 if $cookie->max_age
30 1 2 if ($store) { }
37 0 1 if ($candidate->domain eq $cookie->domain and $candidate->path eq $cookie->path and $candidate->name eq $cookie->name)
45 0 0 if (defined $cookie->max_age and $cookie->max_age == 0 or defined $cookie->expires and $cookie->expires->epoch < time) { }
65 1 0 unless ($found)
84 0 1 unless $url
89 0 1 ref $url && $url->isa('Mojo::URL') ? :
93 0 1 unless $urlobj->is_abs
100 1 1 if ($store)
108 0 1 defined $candidate->expires && $candidate->expires->epoch < time ? :
115 1 0 if ($urlobj->path =~ /^$path/)
116 0 0 if (not $candidate->port) { }
121 0 0 if $candidate->port =~ /\b$port\b/