Condition Coverage

blib/lib/HTTP/Cookies/Chrome.pm
Criterion Covered Total %
condition 26 59 44.0


and 3 conditions

line !l l&&!r l&&r condition
233 48 21 23 $padding =~ /\A(.){$padding_count}\z/ and ord substr($padding, 0, 1) == $padding_count
277 23 0 0 $parts[9] and not $self->{'ignore_discard'}
278 0 23 0 defined $parts[8] and time > $parts[8]
363 0 0 23 $parts[2] and $rest->{'encrypted_value'}
0 0 23 $parts[2] and $rest->{'encrypted_value'} and $self->_cipher
679 0 0 69 defined $path && $path =~ m[^/] && defined $key
700 0 0 69 defined $rest and %$rest

or 2 conditions

line l !l condition
194 3 0 eval { do { my $key = "version"; my $sql = "SELECT * FROM meta WHERE key = '${key}'"; my $rv = $self->_dbh->selectall_arrayref($sql); @$rv ? $rv->[0][1] : 0 } } // 0
348 0 23 $rest->{'httponly'} //= 0
350 23 0 $rest->{'samesite'} //= -1
351 23 0 $rest->{'source_scheme'} //= ""
352 0 23 $rest->{'source_type'} //= ""
353 0 23 $rest->{'top_frame_site_key'} //= ""
354 0 23 $rest->{'has_cross_site_ancestor'} //= 0
369 23 0 $parts[2] //= ""
392 0 0 $_[1] // bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
465 257 4 $_[0]{$mod_key} //= {}
513 0 0 $profile //= "Default"
576 3 4 $self->{'file'} || (return)
649 0 0 $self->{'file'} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
349 0 23 0 $rest->{'last_update_utc'} //= time * 1000
576 0 6 1 $file ||= $self->{'file'} || (return)
649 1 0 0 $new_file ||= $self->{'file'} || (return)
679 0 0 69 not defined $path && $path =~ m[^/] && defined $key or $key =~ /^\$/