Branch Coverage

blib/lib/CGI/Simple/Cookie.pm
Criterion Covered Total %
branch 64 74 86.4


line true false branch
25 2 4 unless $raw_cookie
31 0 8 unless $raw_cookie
39 0 27 unless defined $value
41 27 0 if ($value ne "")
51 5 3 wantarray ? :
58 2 4 unless $raw_cookie
67 12 0 defined $value ? :
70 2 2 wantarray ? :
89 0 52 unless defined $name and defined $value
95 52 0 if defined $path
96 14 38 if defined $domain
97 13 39 if defined $secure
98 15 37 if defined $expires
99 3 49 if defined $max_age
100 13 39 if defined $httponly
101 3 49 if defined $samesite
107 0 77 unless $self->name
111 36 41 if $self->domain
112 77 0 if $self->path
113 31 46 if $self->expires
114 9 68 if $self->max_age
115 31 46 if $self->secure
116 31 46 if $self->httponly
117 9 68 if $self->samesite
129 53 160 if defined $name
135 53 103 if (defined $value)
137 0 17 ref $value eq 'HASH' ? :
36 17 ref $value eq 'ARRAY' ? :
142 82 74 wantarray ? :
147 16 118 if defined $domain
153 14 81 if defined $secure
159 16 120 if defined $expires
166 5 93 if defined $max_age
174 53 160 if defined $path
180 14 81 if defined $httponly
187 5 91 if @_
188 5 0 if $samesite and $_legal_samesite{$samesite}