Branch Coverage

blib/lib/Sprocket/Server.pm
Criterion Covered Total %
branch 12 28 42.8


line true false branch
60 0 6 unless defined $$self{'opts'}{'listen_port'}
65 0 6 if ($$self{'opts'}{'ssl'})
67 0 0 if ($@) { }
115 4 0 if (length $peer_ip == 4) { }
146 4 0 unless $opts
154 4 0 unless defined $$opts{'time_out'}
157 0 4 if ($$self{'opts'}{'ssl'})
158 0 0 if ($$opts{'filter'}->isa('POE::Filter::Stackable') or $$opts{'filter'}->can('push')) { }
170 0 0 if ($@)
194 1 3 if $$opts{'time_out'}
207 0 4 unless ($con->plugin)
247 0 6 if $con->close_on_flush and not $con->get_driver_out_octets
280 0 1 if $errnum != 0
296 0 1 unless defined $_