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
298 0 0 0 $$info{'time'} + $$info{'wait'} > time and $force == 0
385 0 0 0 $line =~ /m:(\S+)$/ and $mac
0 0 0 $line =~ /e:pleaserekey/ and $mac
482 0 0 0 $mac and not $self->validate_data_mac('data', $data, 'key', $client_key, 'digest', $hmac)
695 0 0 0 $hash eq $full_hash and defined first(sub { $$add_chunk{'list'} eq $_; } , @$lists)
723 0 0 0 defined $hash and defined $list
1034 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
1386 3 0 3 scalar @parts > 1 and scalar @paths < 6
1514 36 3 0 $exception and $escape =~ m[^[a-z]+://[^/]+/(.+)]
1600 0 0 0 defined $errors and $$errors{'errors'} > 2
1627 0 0 0 defined $errors and $$errors{'errors'} >= 2 || $$errors{'errors'} == 1 && time - $$errors{'timestamp'} > 300
1737 0 0 0 $i > 1 and $new_range == 1

or 2 conditions

line l !l condition
282 0 0 $args{'force'} || 0
283 0 0 $args{'mac'} || $$self{'mac'} || 0
538 0 0 $args{'list'} || ''
573 0 0 $args{'list'} || ''
574 0 0 $args{'url'} || (return '')
669 0 0 $args{'url'} || (return '')
670 0 0 $args{'suffix'} || (return '')
748 0 0 $args{'url'} || (return ())
749 0 0 $args{'suffix'} || (return ())
750 0 0 $args{'full_hashes'} || []
751 0 0 $args{'full_hashes_prefix'} || []
860 0 0 $args{'list'} || ''
861 0 0 $args{'url'} || (return '')
973 0 0 $args{'data'} || ''
974 0 0 $args{'key'} || ''
975 0 0 $args{'digest'} || ''
999 0 0 $args{'list'} || ''
1027 0 0 $args{'suffix'} || (return 0)
1028 0 0 $args{'prefix'} || ''
1029 0 0 $args{'chunknum'} || (return 0)
1072 0 0 $args{'data'} || ''
1073 0 0 $args{'list'} || ''
1133 0 0 $args{'value'} || (return ())
1134 0 0 $args{'hash_length'} || 4
1191 0 0 $args{'value'} || (return ())
1192 0 0 $args{'hash_length'} || 4
1580 0 0 $args{'prefixes'} || (return ())
1697 0 0 $args{'list'} || ''
1712 0 0 $args{'list'} || ''
1727 0 0 $args{'numbers'} || []
1760 0 0 $args{'range'} || (return ())

or 3 conditions

line l !l&&r !l&&!r condition
321 0 0 0 $client_key eq '' or $wrapped_key eq ''
539 0 0 0 $args{'file'} || "$list.dat"
668 0 0 0 $args{'lists'} || croak("Missing lists\n")
714 0 0 0 $$_{'prefix'} || $$_{'hostkey'}
747 0 0 0 $args{'lists'} || croak("Missing lists\n")
814 0 0 0 $$add_chunk{'chunknum'} != $$sub_chunk{'addchunknum'} or $$add_chunk{'list'} ne $$sub_chunk{'list'}
904 0 0 0 $$keys{'client_key'} eq '' or $$keys{'wrapped_key'} eq ''
998 0 0 0 $args{'time'} || time
1034 0 0 0 $$chunk{'prefix'} eq $prefix || $$chunk{'prefix'} eq ''
1292 0 0 0 $$self{'debug'} > 0 or $$self{'errors'} > 0
1443 3 0 36 not $uri->scheme or $uri->scheme eq ''
1581 0 0 0 $args{'size'} || length $$prefixes[0]
1627 0 0 0 $$errors{'errors'} >= 2 || $$errors{'errors'} == 1 && time - $$errors{'timestamp'} > 300