Branch Coverage

blib/lib/Net/Gemini/Server.pm
Criterion Covered Total %
branch 13 22 59.0


line true false branch
22 0 9 unless defined $param{'listen'}{'LocalPort'}
28 1 8 unless $obj{'_socket'} = $ioclass->new("Listen", 5, "Reuse", 1, %{$param{"listen"};}, "SSL_startHandshake", 0)
33 0 8 unless $obj{'_context'} = "IO::Socket::SSL::SSL_Context"->new(%{$param{"context"};}, "SSL_server", 1)
48 0 2 unless (my $client = $server->accept)
52 0 2 if ($param{'close_on_accept'})
57 0 2 unless defined $parent
58 0 2 if ($parent)
62 2 0 unless ($param{'no_ssl'})
63 0 2 unless ("IO::Socket::SSL"->start_SSL($client, "SSL_server", 1, "SSL_reuse_ctx", $self->{'_context'}))
74 0 2 if ($param{'close_before_read'})
90 1 1 unless (eval { do { &$callback($client, $n, $buf); 1 } })