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
299 0 0 0 $$info{'time'} + $$info{'wait'} > time and $force == 0
386 0 0 0 $line =~ /m:(\S+)$/ and $mac
0 0 0 $line =~ /e:pleaserekey/ and $mac
483 0 0 0 $mac and not $self->validate_data_mac('data', $data, 'key', $client_key, 'digest', $hmac)
696 0 0 0 $hash eq $full_hash and defined first(sub { $$add_chunk{'list'} eq $_; } , @$lists)
724 0 0 0 defined $hash and defined $list
1035 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
1387 3 0 3 scalar @parts > 1 and scalar @paths < 6
1515 36 3 0 $exception and $escape =~ m[^[a-z]+://[^/]+/(.+)]
1601 0 0 0 defined $errors and $$errors{'errors'} > 2
1628 0 0 0 defined $errors and $$errors{'errors'} >= 2 || $$errors{'errors'} == 1 && time - $$errors{'timestamp'} > 300
1738 0 0 0 $i > 1 and $new_range == 1

or 2 conditions

line l !l condition
283 0 0 $args{'force'} || 0
284 0 0 $args{'mac'} || $$self{'mac'} || 0
539 0 0 $args{'list'} || ''
574 0 0 $args{'list'} || ''
575 0 0 $args{'url'} || (return '')
670 0 0 $args{'url'} || (return '')
671 0 0 $args{'suffix'} || (return '')
749 0 0 $args{'url'} || (return ())
750 0 0 $args{'suffix'} || (return ())
751 0 0 $args{'full_hashes'} || []
752 0 0 $args{'full_hashes_prefix'} || []
861 0 0 $args{'list'} || ''
862 0 0 $args{'url'} || (return '')
974 0 0 $args{'data'} || ''
975 0 0 $args{'key'} || ''
976 0 0 $args{'digest'} || ''
1000 0 0 $args{'list'} || ''
1028 0 0 $args{'suffix'} || (return 0)
1029 0 0 $args{'prefix'} || ''
1030 0 0 $args{'chunknum'} || (return 0)
1073 0 0 $args{'data'} || ''
1074 0 0 $args{'list'} || ''
1134 0 0 $args{'value'} || (return ())
1135 0 0 $args{'hash_length'} || 4
1192 0 0 $args{'value'} || (return ())
1193 0 0 $args{'hash_length'} || 4
1581 0 0 $args{'prefixes'} || (return ())
1698 0 0 $args{'list'} || ''
1713 0 0 $args{'list'} || ''
1728 0 0 $args{'numbers'} || []
1761 0 0 $args{'range'} || (return ())

or 3 conditions

line l !l&&r !l&&!r condition
322 0 0 0 $client_key eq '' or $wrapped_key eq ''
540 0 0 0 $args{'file'} || "$list.dat"
669 0 0 0 $args{'lists'} || croak("Missing lists\n")
715 0 0 0 $$_{'prefix'} || $$_{'hostkey'}
748 0 0 0 $args{'lists'} || croak("Missing lists\n")
815 0 0 0 $$add_chunk{'chunknum'} != $$sub_chunk{'addchunknum'} or $$add_chunk{'list'} ne $$sub_chunk{'list'}
905 0 0 0 $$keys{'client_key'} eq '' or $$keys{'wrapped_key'} eq ''
999 0 0 0 $args{'time'} || time
1035 0 0 0 $$chunk{'prefix'} eq $prefix || $$chunk{'prefix'} eq ''
1293 0 0 0 $$self{'debug'} > 0 or $$self{'errors'} > 0
1444 3 0 36 not $uri->scheme or $uri->scheme eq ''
1582 0 0 0 $args{'size'} || length $$prefixes[0]
1628 0 0 0 $$errors{'errors'} >= 2 || $$errors{'errors'} == 1 && time - $$errors{'timestamp'} > 300