Branch Coverage

blib/lib/Alice/HTTP/Server.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
110 0 0 if $@
122 0 0 if ($self->auth_enabled)
123 0 0 unless ($req->path eq '/login' or $self->is_logged_in($req))
130 0 0 if ($req->path_info =~ m[^/$path/?$])
142 0 0 if ($req->path =~ m[^(/(?:safe)?)$]) { }
143 0 0 $1 ? :
164 0 0 if (not $self->auth_enabled) { }
0 0 elsif (my $user = $req->param('username') and my $pass = $req->param('password')) { }
175 0 0 if ($app) { }
204 0 0 if (not $self->auth_enabled) { }
227 0 0 $req->user_agent =~ /android/i ? :
239 0 0 if (my $fh = $req->env->{'websocket.impl'}->handshake) { }
265 0 0 defined $msg ? :
0 0 defined $html ? :
0 0 defined $source ? :
0 0 defined $stream ? :
306 0 0 if (my $cb = shift @queue) { }
323 0 0 if ($$options{'images'} eq 'show' and $config->animate eq 'hide')
339 0 0 if ($@) { }
356 0 0 if $set eq '_'
358 0 0 $$wins[0] eq 'empty' ? :
393 0 0 if ($req->param('has_servers')) { }
401 0 0 unless $req->param($name)
402 0 0 if $name =~ /^(?:has_servers|highlights|monospace_nicks)$/
403 0 0 if ($name =~ /^(.+?)_(.+)/ and exists $$new_config{'servers'}) { }
404 0 0 if ($2 eq 'channels' or $2 eq 'on_connect') { }
437 0 0 $success ? :