Branch Coverage

blib/lib/CGI/Simple/Cookie.pm
Criterion Covered Total %
branch 77 88 87.5


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 ? :
91 0 52 unless defined $name and defined $value
97 52 0 if defined $path
98 14 38 if defined $domain
99 13 39 if defined $secure
100 15 37 if defined $expires
101 3 49 if defined $max_age
102 13 39 if defined $httponly
103 3 49 if defined $samesite
104 2 50 if defined $priority
105 2 50 if defined $partitioned
111 0 81 unless $self->name
115 38 43 if $self->domain
116 81 0 if $self->path
117 33 48 if $self->expires
118 11 70 if $self->max_age
119 33 48 if $self->secure
120 33 48 if $self->httponly
121 11 70 if $self->samesite
122 11 70 if $self->priority
123 11 70 if $self->partitioned
135 53 168 if defined $name
141 53 107 if (defined $value)
143 0 17 ref $value eq 'HASH' ? :
36 17 ref $value eq 'ARRAY' ? :
148 86 74 wantarray ? :
153 16 124 if defined $domain
159 14 85 if defined $secure
165 16 126 if defined $expires
172 5 99 if defined $max_age
180 53 168 if defined $path
186 14 85 if defined $httponly
192 2 83 if defined $partitioned
199 5 97 if @_
200 5 0 if $samesite and $_legal_samesite{$samesite}
207 2 93 if @_
208 2 0 if ($priority and $_legal_priority{$priority})