Condition Coverage

blib/lib/Net/Google/SafeBrowsing3.pm
Criterion Covered Total %
condition 4 87 4.6


and 3 conditions

line !l l&&!r l&&r condition
332 0 0 0 $info->{'time'} + $info->{'wait'} > time and $force == 0
619 0 0 0 defined $hash and defined $list
1134 37 3 0 $exception and $escape =~ m[^[a-z]+://[^/]+/(.+)]
1208 0 0 0 defined $errors and $errors->{'errors'} > 2
1235 0 0 0 defined $errors and $errors->{'errors'} >= 2 || $errors->{'errors'} == 1 && time - $errors->{'timestamp'} > 300
1361 0 0 0 $i > 1 and $new_range == 1

or 2 conditions

line l !l condition
318 0 0 $args{'force'} || 0
529 0 0 $args{'list'} || ''
530 0 0 $args{'url'} || (return '')
573 0 0 $args{'url'} || (return '')
601 0 0 $result->{'type'} || 0
624 0 0 $hash->{'type'} || 0
646 0 0 $args{'url'} || (return ())
647 0 0 $args{'full_hashes'} || []
648 0 0 $args{'full_hashes_prefix'} || []
717 0 0 $args{'list'} || ''
765 0 0 $args{'data'} || ''
766 0 0 $args{'list'} || ''
801 0 0 $args{'chunk'} || (return ())
818 0 0 $chunk->{'prefix_type'} || 0
819 0 0 $chunk->{'hashes'} || ''
846 0 0 $args{'chunk'} || (return ())
854 0 0 $chunk->{'prefix_type'} || 0
855 0 0 $chunk->{'hashes'} || ''
1188 0 0 $args{'prefixes'} || (return ())
1351 0 0 $args{'numbers'} || []
1384 0 0 $args{'range'} || (return ())

or 3 conditions

line l !l&&r !l&&!r condition
572 0 0 0 $args{'lists'} || croak("Missing lists\n")
645 0 0 0 $args{'lists'} || croak("Missing lists\n")
686 0 0 0 $add_chunk->{'chunknum'} != $sub_chunk->{'addchunknum'} or $add_chunk->{'list'} ne $sub_chunk->{'list'}
716 0 0 0 $args{'time'} || time
780 0 0 0 not exists $data->{'chunk_type'} or $data->{'chunk_type'} == 0
921 0 0 0 $self->{'debug'} > 0 or $self->{'errors'} > 0
1063 3 0 37 not $uri->scheme or $uri->scheme eq ''
1189 0 0 0 $args{'size'} || length $prefixes->[0]
1235 0 0 0 $errors->{'errors'} >= 2 || $errors->{'errors'} == 1 && time - $errors->{'timestamp'} > 300