Condition Coverage

blib/lib/Net/Google/SafeBrowsing2.pm
Criterion Covered Total %
condition 6 140 4.2


and 3 conditions

line !l l&&!r l&&r condition
301 0 0 0 $info->{'time'} + $info->{'wait'} > time and $force == 0
388 0 0 0 $line =~ /m:(\S+)$/ and $mac
0 0 0 $line =~ /e:pleaserekey/ and $mac
485 0 0 0 $mac and not $self->validate_data_mac('data', $data, 'key', $client_key, 'digest', $hmac)
698 0 0 0 $hash eq $full_hash and defined &first(sub { $add_chunk->{'list'} eq $_; } , @$lists)
726 0 0 0 defined $hash and defined $list
1037 0 0 0 $chunk->{'host'} eq $suffix and $chunk->{'prefix'} eq $prefix || $chunk->{'prefix'} eq ''
0 0 0 $chunk->{'host'} eq $suffix and $chunk->{'prefix'} eq $prefix || $chunk->{'prefix'} eq '' and $chunk->{'add_chunknum'} == $chuknum
1389 3 0 3 scalar @parts > 1 and scalar @paths < 6
1517 36 3 0 $exception and $escape =~ m[^[a-z]+://[^/]+/(.+)]
1603 0 0 0 defined $errors and $errors->{'errors'} > 2
1630 0 0 0 defined $errors and $errors->{'errors'} >= 2 || $errors->{'errors'} == 1 && time - $errors->{'timestamp'} > 300
1740 0 0 0 $i > 1 and $new_range == 1

or 2 conditions

line l !l condition
285 0 0 $args{'force'} || 0
286 0 0 $args{'mac'} || $self->{'mac'} || 0
541 0 0 $args{'list'} || ''
576 0 0 $args{'list'} || ''
577 0 0 $args{'url'} || (return '')
672 0 0 $args{'url'} || (return '')
673 0 0 $args{'suffix'} || (return '')
751 0 0 $args{'url'} || (return ())
752 0 0 $args{'suffix'} || (return ())
753 0 0 $args{'full_hashes'} || []
754 0 0 $args{'full_hashes_prefix'} || []
863 0 0 $args{'list'} || ''
864 0 0 $args{'url'} || (return '')
976 0 0 $args{'data'} || ''
977 0 0 $args{'key'} || ''
978 0 0 $args{'digest'} || ''
1002 0 0 $args{'list'} || ''
1030 0 0 $args{'suffix'} || (return 0)
1031 0 0 $args{'prefix'} || ''
1032 0 0 $args{'chunknum'} || (return 0)
1075 0 0 $args{'data'} || ''
1076 0 0 $args{'list'} || ''
1136 0 0 $args{'value'} || (return ())
1137 0 0 $args{'hash_length'} || 4
1194 0 0 $args{'value'} || (return ())
1195 0 0 $args{'hash_length'} || 4
1583 0 0 $args{'prefixes'} || (return ())
1700 0 0 $args{'list'} || ''
1715 0 0 $args{'list'} || ''
1730 0 0 $args{'numbers'} || []
1763 0 0 $args{'range'} || (return ())

or 3 conditions

line l !l&&r !l&&!r condition
324 0 0 0 $client_key eq '' or $wrapped_key eq ''
542 0 0 0 $args{'file'} || "$list.dat"
671 0 0 0 $args{'lists'} || croak("Missing lists\n")
717 0 0 0 $_->{'prefix'} || $_->{'hostkey'}
750 0 0 0 $args{'lists'} || croak("Missing lists\n")
817 0 0 0 $add_chunk->{'chunknum'} != $sub_chunk->{'addchunknum'} or $add_chunk->{'list'} ne $sub_chunk->{'list'}
907 0 0 0 $keys->{'client_key'} eq '' or $keys->{'wrapped_key'} eq ''
1001 0 0 0 $args{'time'} || time
1037 0 0 0 $chunk->{'prefix'} eq $prefix || $chunk->{'prefix'} eq ''
1295 0 0 0 $self->{'debug'} > 0 or $self->{'errors'} > 0
1446 3 0 36 not $uri->scheme or $uri->scheme eq ''
1584 0 0 0 $args{'size'} || length $prefixes->[0]
1630 0 0 0 $errors->{'errors'} >= 2 || $errors->{'errors'} == 1 && time - $errors->{'timestamp'} > 300