Branch Coverage

inc/Test/Net/SSLeay/Socket.pm
Criterion Covered Total %
branch 13 34 38.2


line true false branch
33 0 28 unless (exists $PROTOS{$self->{'proto'}})
45 0 0 $Test::Net::SSLeay::Socket::EVAL_ERROR ? :
0 28 unless my $addr = eval { do { inet_aton($self->{'addr'}) } }
49 0 0 $Test::Net::SSLeay::Socket::EVAL_ERROR ? :
0 28 unless my $sockaddr = eval { do { pack_sockaddr_in($self->{'port'}, $addr) } }
53 0 28 unless socket $self->{'sock'}, 2, $PROTOS{$self->{'proto'}}, 0
56 28 0 if ($self->{'proto'} eq "tcp")
57 0 28 unless bind $self->{'sock'}, $sockaddr
61 0 28 unless listen $self->{'sock'}, $self->{'queue'}
86 0 43 if (defined $sock and builtin::reftype($sock) ne "GLOB")
91 0 43 unless CORE::accept $sock, $self->{'sock'}
102 0 0 $Test::Net::SSLeay::Socket::EVAL_ERROR ? :
0 41 unless my $addr = eval { do { inet_aton($self->{'saddr'}) } }
106 0 0 $Test::Net::SSLeay::Socket::EVAL_ERROR ? :
0 41 unless my $sockaddr = eval { do { pack_sockaddr_in($self->{'sport'}, $addr) } }
110 0 41 unless socket my $sock, 2, $PROTOS{$self->{'proto'}}, 0
112 0 41 unless CORE::connect $sock, $sockaddr