Branch Coverage

blib/lib/POE/Component/TLSify.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
21 0 18 unless (defined $socket)
25 0 18 unless (defined $socket->blocking(0))
29 0 18 if (defined $callback and ref $callback ne 'CODE')
34 0 18 unless tie *$newsock, 'POE::Component::TLSify::ServerHandle', $socket, $args, $callback
36 4 14 if (defined $callback)
47 0 18 unless (defined $socket)
51 0 18 unless (defined $socket->blocking(0))
55 0 18 if (defined $callback and ref $callback ne 'CODE')
60 0 18 unless tie *$newsock, 'POE::Component::TLSify::ClientHandle', $socket, $args, $callback
62 4 14 if (defined $callback)