Condition Coverage

blib/lib/Net/Whois/Generic.pm
Criterion Covered Total %
condition 18 29 62.0


and 3 conditions

line !l l&&!r l&&r condition
185 11 0 0 defined $port and $port =~ /^\d+$/
199 86 0 0 defined $timeout and $timeout =~ /^\d+$/
398 3 0 10 UNIVERSAL::isa($socket, 'IO::Socket') && $socket->connected

or 2 conditions

line l !l condition
289 9 2 $self->hostname || 'whois.ripe.net'

or 3 conditions

line l !l&&r !l&&!r condition
427 1 1 6 $query =~ /^(41|102|105|154|196|197)\.\d+\.\d+\.\d+/ or $query =~ /AFRINIC/i
2 0 6 $query =~ /^(41|102|105|154|196|197)\.\d+\.\d+\.\d+/ or $query =~ /AFRINIC/i or $query =~ /^2c00::/i
0 0 6 $query =~ /^(23|34|50|64|64|65|66|67|68|69|70|71|72|73|74|75|76|96|97|98|9|100|104|107|108|135|136|142|147|162|166|172|173|174|184|192|198|199|204|205|206|207|208|209|216)/ or $query =~ /^(2001:0400|2001:1800|2001:4800:|2600|2610:0000):/i
0 0 6 $query =~ /^(23|34|50|64|64|65|66|67|68|69|70|71|72|73|74|75|76|96|97|98|9|100|104|107|108|135|136|142|147|162|166|172|173|174|184|192|198|199|204|205|206|207|208|209|216)/ or $query =~ /^(2001:0400|2001:1800|2001:4800:|2600|2610:0000):/i or $query =~ /ARIN/
1 0 5 $query =~ /^(10|14|27|36|39|42|49|58|59|60|61|101|103|106|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|169\.208|175|180|182|183|202|203|210|211|218|219|220|221|222|223)\.\d+\.\d+/ or $query =~ /^(2001:0200|2001:0C00|2001:0E00|2001:4400|2001:8000|2001:A000|2001:B000|2400:0000|2001:0DC0|2001:0DE8|2001:0DF0|2001:07FA|2001:0DE0|2001:0DB8):/i
1 1 4 $query =~ /^(10|14|27|36|39|42|49|58|59|60|61|101|103|106|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|169\.208|175|180|182|183|202|203|210|211|218|219|220|221|222|223)\.\d+\.\d+/ or $query =~ /^(2001:0200|2001:0C00|2001:0E00|2001:4400|2001:8000|2001:A000|2001:B000|2400:0000|2001:0DC0|2001:0DE8|2001:0DF0|2001:07FA|2001:0DE0|2001:0DB8):/i or $query =~ /APNIC/