Condition Coverage

blib/lib/Net/Connection.pm
Criterion Covered Total %
condition 33 54 61.1


and 3 conditions

line !l l&&!r l&&r condition
210 2 1 13 defined $args{'foreign_host'} and defined $args{'local_host'}
1 1 12 defined $args{'foreign_host'} and defined $args{'local_host'} and defined $args{'foreign_port'}
1 1 11 defined $args{'foreign_host'} and defined $args{'local_host'} and defined $args{'foreign_port'} and defined $args{'local_port'}
1 1 10 defined $args{'foreign_host'} and defined $args{'local_host'} and defined $args{'foreign_port'} and defined $args{'local_port'} and defined $args{'state'}
1 1 9 defined $args{'foreign_host'} and defined $args{'local_host'} and defined $args{'foreign_port'} and defined $args{'local_port'} and defined $args{'state'} and defined $args{'proto'}
222 3 5 1 defined $args{'pid'} and not $args{'pid'} =~ /^[0-9]+$/
230 5 2 1 defined $args{'uid'} and not $args{'uid'} =~ /^[0-9]+$/
238 0 6 1 defined $args{'sendq'} and not $args{'sendq'} =~ /^[0-9]+$/
244 0 5 1 defined $args{'recvq'} and not $args{'recvq'} =~ /^[0-9]+$/
327 5 0 0 defined $args{'ptrs'} and $args{'ptrs'}
332 0 0 0 $self->{'foreign_host'} =~ /[A-Za-z]/ and not $self->{'foreign_host'} =~ /\:/
342 0 0 0 defined $answer->{'answer'}[0] and ref $answer->{'answer'}[0] eq 'Net::DNS::RR::PTR'
350 0 0 0 $self->{'local_host'} =~ /[A-Za-z]/ and not $self->{'local_host'} =~ /\:/
360 0 0 0 defined $answer->{'answer'}[0] and ref $answer->{'answer'}[0] eq 'Net::DNS::RR::PTR'
370 5 0 0 $self->{'foreign_host'} =~ /[A-Za-z]/ and not $self->{'foreign_host'} =~ /\:/
376 5 0 0 $self->{'local_host'} =~ /[A-Za-z]/ and not $self->{'local_host'} =~ /\:/
385 3 1 1 $args{'uid_resolve'} and defined $self->{'uid'}
3 0 1 $args{'uid_resolve'} and not defined $self->{'uid'}