Condition Coverage

blib/lib/Net/DNS/Paranoid.pm
Criterion Covered Total %
condition 41 63 65.0


and 3 conditions

line !l l&&!r l&&r condition
49 0 2 2 $sock and $sock eq 'MOCK'

or 2 conditions

line l !l condition
16 0 1 $args{'whitelisted_hosts'} ||= []
17 0 1 $args{'blocked_hosts'} ||= []
36 1 18 $depth ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
15 1 0 0 $args{'resolver'} ||= 'Net::DNS::Resolver'->new
110 1 0 19 $host =~ /^localhost$/i or $host =~ /\s/i
126 35 6 4 /^\d+$/ or /^0x[a-f\d]+$/
143 0 0 4 $parts[0] > 255 or $parts[1] > 16777215
149 0 0 1 $parts[0] > 255 or $parts[1] > 255
0 0 1 $parts[0] > 255 or $parts[1] > 255 or $parts[2] > 65535
156 0 0 7 $parts[0] > 255 or $parts[1] > 255
0 0 7 $parts[0] > 255 or $parts[1] > 255 or $parts[2] > 255
0 0 7 $parts[0] > 255 or $parts[1] > 255 or $parts[2] > 255 or $parts[3] > 255
167 1 3 10 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160
4 3 7 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160 or ($haddr & 4278190080) == 2130706432
6 0 7 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160 or ($haddr & 4278190080) == 2130706432 or ($haddr & 4293918720) == 2886729728
3 0 7 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160 or ($haddr & 4278190080) == 2130706432 or ($haddr & 4293918720) == 2886729728 or ($haddr & 4294901760) == 2851995648
0 1 6 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160 or ($haddr & 4278190080) == 2130706432 or ($haddr & 4293918720) == 2886729728 or ($haddr & 4294901760) == 2851995648 or ($haddr & 4294901760) == 3232235520
1 1 5 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160 or ($haddr & 4278190080) == 2130706432 or ($haddr & 4293918720) == 2886729728 or ($haddr & 4294901760) == 2851995648 or ($haddr & 4294901760) == 3232235520 or ($haddr & 4294967040) == 3221225984
2 1 4 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160 or ($haddr & 4278190080) == 2130706432 or ($haddr & 4293918720) == 2886729728 or ($haddr & 4294901760) == 2851995648 or ($haddr & 4294901760) == 3232235520 or ($haddr & 4294967040) == 3221225984 or ($haddr & 4294967040) == 3227017984
2 1 3 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160 or ($haddr & 4278190080) == 2130706432 or ($haddr & 4293918720) == 2886729728 or ($haddr & 4294901760) == 2851995648 or ($haddr & 4294901760) == 3232235520 or ($haddr & 4294967040) == 3221225984 or ($haddr & 4294967040) == 3227017984 or $haddr == 4294967295
2 0 3 ($haddr & 4278190080) == 0 or ($haddr & 4278190080) == 167772160 or ($haddr & 4278190080) == 2130706432 or ($haddr & 4293918720) == 2886729728 or ($haddr & 4294901760) == 2851995648 or ($haddr & 4294901760) == 3232235520 or ($haddr & 4294967040) == 3221225984 or ($haddr & 4294967040) == 3227017984 or $haddr == 4294967295 or ($haddr & 4026531840) == 3758096384