Condition Coverage

blib/lib/Cookie/Domain.pm
Criterion Covered Total %
condition 19 79 24.0


and 3 conditions

line !l l&&!r l&&r condition
77 0 0 0 scalar @_ and ref $_[0] eq 'Cookie::Domain' || $_[0] eq 'Cookie::Domain'
81 0 0 0 @_ == 1 and ref $_[0] eq "HASH"
111 0 0 0 $file->exists && !$file->is_empty
115 0 0 0 $meta->{'etag'} and $file->exists
0 0 0 $meta->{'etag'} and $file->exists and not $file->is_empty
124 0 0 0 defined $mtime and $mtime
192 0 0 0 not $file->is_empty and $mtime
0 0 0 not $file->is_empty and $mtime and $mtime == $epoch
200 0 0 0 $dont_have_etag and $meta->{'etag'}
268 2 0 9 defined $Cookie::Domain::PUBLIC_SUFFIX_DATA and ref $Cookie::Domain::PUBLIC_SUFFIX_DATA eq "HASH"
0 1 1 $json_file and $json_file->exists
277 0 0 1 $f and $f->exists
279 0 0 1 defined $meta->{'db_last_modified'} and $meta->{'db_last_modified'} =~ /^\d{10}$/
444 0 0 1 $self->file && $self->file->exists
503 117 0 4 exists $public_label_def->{'_is_neg'} and $public_label_def->{'_is_neg'}
516 8 0 0 exists $public_label_def->{'_is_neg'} and $public_label_def->{'_is_neg'}
614 0 0 15 $self->name->length and $self->suffix->length

or 2 conditions

line l !l condition
96 0 0 $this //= "Cookie::Domain"
99 0 0 $opts->{'file'} //= ""
187 0 0 $meta->{'etag'} // ""
307 1 0 shift @_ || $self->json_file || (return $self->error('No json file was specified.'))
349 1 0 shift @_ || $self->file || (return $self->error('No public suffix data file was provided.'))
393 10196 9429 $h->{$label} ||= {}
414 1 0 shift @_ || $self->json_file || (return $self->error('No json file was specified.'))
466 95 2 shift @_ || (return $self->error('No host name was provided'))

or 3 conditions

line l !l&&r !l&&!r condition
77 0 0 0 ref $_[0] eq 'Cookie::Domain' || $_[0] eq 'Cookie::Domain'
100 0 0 0 $opts->{'file'} || $self->file
192 0 0 0 $code == 304 or not $file->is_empty and $mtime and $mtime == $epoch
297 1 0 0 $json_file or $f