Condition Coverage

blib/lib/Net/EmptyPort.pm
Criterion Covered Total %
condition 25 30 83.3


and 3 conditions

line !l l&&!r l&&r condition
42 4 4 16 @_ && ref $_[0] eq 'HASH'
49 2 1 1 $port =~ /^[0-9]+$/ and $port < 49152
52 1 3 0 $proto eq 'tcp' and check_port({'host', $host, 'port', $port})
60 0 20 0 $proto eq 'tcp' and check_port({'host', $host, 'port', $port})
68 1 1 90 @_ && ref $_[0] eq 'HASH'
107 8 59 4 $max_wait >= 0 and $waited > $max_wait
119 1 3 15 @_ and ref $_[0] eq 'HASH'
134 67 0 0 $^O eq 'MSWin32' && defined $port

or 2 conditions

line l !l condition
21 4 25 $port ||= 0
22 24 5 $proto ||= 'tcp'
129 17 2 $max_wait ||= 10