Branch Coverage

blib/lib/App/Alice/HTTPD.pm
Criterion Covered Total %
branch 2 50 4.0


line true false branch
78 0 2 if ($self->app->auth_enabled)
79 0 0 unless -d $self->config->path . '/sessions'
96 0 0 if ($self->app->auth_enabled)
97 0 0 unless ($req->path eq '/login' or $self->is_logged_in($req))
105 0 0 if ($req->path_info =~ /$re/)
121 0 0 if (not $self->app->auth_enabled or $self->is_logged_in($req)) { }
0 0 elsif (my $user = $req->param('username') and my $pass = $req->param('password')) { }
127 0 0 if ($self->app->authenticate($user, $pass))
144 0 0 if (not $self->app->auth_enabled) { }
194 22 0 if $self->no_streams or not @data
204 0 0 if $purge
214 0 0 $req->user_agent =~ /android/i ? :
222 0 0 unless @_
243 0 0 unless utf8::is_utf8($msg)
244 0 0 if $is_html
247 0 0 if ($window)
250 0 0 if length $_
269 0 0 @windows > 1 ? :
281 0 0 if (not @windows) { }
375 0 0 if ($req->parameters->{'has_servers'})
379 0 0 unless $req->parameters->{$name}
380 0 0 if $name eq 'has_servers'
381 0 0 if ($name =~ /^(.+?)_(.+)/ and exists $$new_config{'servers'}) { }
0 0 elsif ($name eq 'highlights') { }
382 0 0 if ($2 eq 'channels' or $2 eq 'on_connect') { }