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
230 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'}
242 3 5 1 defined $args{'pid'} and not $args{'pid'} =~ /^[0-9]+$/
250 5 2 1 defined $args{'uid'} and not $args{'uid'} =~ /^[0-9]+$/
258 0 6 1 defined $args{'sendq'} and not $args{'sendq'} =~ /^[0-9]+$/
264 0 5 1 defined $args{'recvq'} and not $args{'recvq'} =~ /^[0-9]+$/
363 5 0 0 defined $args{'ptrs'} and $args{'ptrs'}
368 0 0 0 $self->{'foreign_host'} =~ /[A-Za-z]/ and not $self->{'foreign_host'} =~ /\:/
378 0 0 0 defined $answer->{'answer'}[0] and ref $answer->{'answer'}[0] eq 'Net::DNS::RR::PTR'
386 0 0 0 $self->{'local_host'} =~ /[A-Za-z]/ and not $self->{'local_host'} =~ /\:/
396 0 0 0 defined $answer->{'answer'}[0] and ref $answer->{'answer'}[0] eq 'Net::DNS::RR::PTR'
406 5 0 0 $self->{'foreign_host'} =~ /[A-Za-z]/ and not $self->{'foreign_host'} =~ /\:/
412 5 0 0 $self->{'local_host'} =~ /[A-Za-z]/ and not $self->{'local_host'} =~ /\:/
421 3 1 1 $args{'uid_resolve'} and defined $self->{'uid'}
3 0 1 $args{'uid_resolve'} and not defined $self->{'uid'}