Branch Coverage

blib/lib/Arriba/Server.pm
Criterion Covered Total %
branch 42 76 55.2


line true false branch
37 0 16 if ($$options{'pid'})
40 0 16 if ($$options{'daemonize'})
43 8 8 if ($$options{'ssl_cert'})
46 8 8 if ($$options{'ssl_key'})
49 16 0 unless (exists $$options{'keepalive'})
52 16 0 unless (exists $$options{'keepalive_timeout'})
57 16 0 unless $$options{'listen'}
59 16 0 if ($listen =~ /:/) { }
61 16 0 if $h
63 0 16 if 'ssl' eq lc $opt
79 8 8 $$options{'ssl'} ? :
0 16 $$options{'error_log'} ? :
105 0 16 if ($$self{'options'}{'listen_ssl'})
120 0 16 if ($$self{'options'}{'spdy'})
123 0 0 if ($sock->NS_proto eq 'SSL')
134 0 8 $$port{'proto'} eq 'unix' ? :
8 8 $$port{'proto'} eq 'ssl' ? :
137 0 16 if $$self{'options'}{'server_ready'}
154 0 2 if ($quit)
161 0 0 unless keys %{$$self{'server'}{'children'};}
172 6 0 unless $$self{'options'}{'argv'}
185 0 14 if ($$self{'options'}{'psgi_app_builder'})
188 14 0 unless $$self{'options'}{'argv'}
205 0 3 if ($ssl and $client->next_proto_negotiated and $client->next_proto_negotiated eq 'spdy/3') { }
227 8 74 if ($$req{'env'}) { }
254 0 74 if ($reqlen < 0)
263 0 74 if ($proto and $proto eq 'HTTP/1.0') { }
74 0 elsif ($proto and $proto eq 'HTTP/1.1') { }
264 0 0 if ($conn_header and $conn_header =~ /^keep-alive$/i) { }
273 0 74 if ($conn_header and $conn_header =~ /^close$/i) { }
282 0 74 if ($$env{'HTTP_EXPECT'})
283 0 0 if ($$env{'HTTP_EXPECT'} eq '100-continue') { }
293 0 74 unless ($$env{'HTTP_HOST'})
300 0 74 unless ($$self{'options'}{'keepalive'})
308 8 74 unless $$req{'complete'}
310 8 66 if ($$req{'body_stream'}) { }
319 4 70 if (ref $res eq 'CODE') { }
327 0 74 unless $sel->can_read($$self{'options'}{'keepalive_timeout'})