Branch Coverage

blib/lib/HTTP/Cookies/Chrome.pm
Criterion Covered Total %
branch 41 86 47.6


line true false branch
174 89 3 if defined $yes
177 3 0 if $yes = defined $v
188 0 3 if ($@)
191 0 3 if defined $version
192 0 3 unless $has_meta
198 3 0 @$rv ? :
200 0 3 if ($@)
208 0 92 unless ($self->_cipher)
209 0 0 if warnings::enabled()
215 0 92 unless ($type eq "v10")
216 0 0 if warnings::enabled()
223 92 0 if ($self->_db_24_or_later)
233 69 23 unless ($padding =~ /\A(.){$padding_count}\z/ and ord substr($padding, 0, 1) == $padding_count)
234 0 69 if warnings::enabled()
237 23 69 if $padding_count <= 16
245 0 23 unless (defined $value)
246 0 0 if warnings::enabled()
250 0 23 unless ($self->_cipher)
251 0 0 if warnings::enabled()
260 0 23 if $padding_length == 0
277 0 23 if $parts[9] and not $self->{'ignore_discard'}
278 0 23 if defined $parts[8] and time > $parts[8]
281 15 8 $parts[7] ? :
283 17 6 $domain =~ /^\./ ? :
321 92 0 if (my $e = $_->encrypted_value)
363 23 0 if ($parts[2] and $rest->{'encrypted_value'} and $self->_cipher)
493 0 0 if ($^O eq 'darwin') { }
0 0 elsif ($^O eq 'linux') { }
516 0 0 if ($^O eq 'darwin') { }
0 0 elsif ($^O eq 'linux') { }
520 0 0 unless -e $path_to_cookies
541 0 4 unless defined $pass
545 3 1 if ($file)
584 0 69 length $row->value ? :
590 0 69 if ($self->{'ignore_discard'}) { }
595 69 0 $row->source_port > 0 ? :
679 0 69 if not defined $path && $path =~ m[^/] && defined $key or $key =~ /^\$/
688 69 0 if (defined $maxage)
689 0 69 if ($maxage <= 0)
695 69 0 unless defined $version
700 69 0 if defined $rest and %$rest
742 69 92 unless defined $value
751 0 1610 unless exists $columns{$method}