| lib/PAGI/Runner.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 41 | 64 | 64.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 212 | 73 | 0 | 2 | $args[$i] eq "server_options" and ref $args[$i + 1] eq "HASH" |
| 375 | 6 | 7 | 3 | not $self->{'app_spec'} and @argv |
| 438 | 3 | 7 | 0 | $use_middleware and $self->mode eq "development" |
| 594 | 5 | 0 | 0 | $_current_runner and $PAGI::Runner::_current_runner->{'_pid_file_path'} |
| 613 | 1 | 0 | 0 | $self->mode ne "production" and not $self->{'quiet'} |
| 650 | 0 | 0 | 9 | $module->can("new") and $module->can("to_app") |
| 688 | 5 | 0 | 0 | not defined $app and $! |
| line | l | !l | condition |
|---|---|---|---|
| 159 | 22 | 37 | $args{'quiet'} // 0 |
| 0 | 59 | $args{'no_access_log'} // 0 | |
| 1 | 58 | $args{'daemonize'} // 0 | |
| 0 | 59 | $args{'libs'} // [] | |
| 0 | 59 | $args{'modules'} // [] | |
| 5 | 54 | $args{'server_options'} // {} | |
| 366 | 1 | 0 | ref $app || 'non-reference' |
| 436 | 3 | 7 | $self->{'default_middleware'} // 1 |
| 462 | 0 | 10 | $self->{'server'} // "PAGI::Server" |
| 475 | 9 | 0 | $self->{'server_options'} // {} |
| 508 | 0 | 7 | $self->{'host'} // "127.0.0.1" |
| 4 | 3 | $self->{'port'} // 5000 | |
| 9 | 0 | $self->{'quiet'} // 0 | |
| 692 | 1 | 0 | ref $app || 'non-reference' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 500 | 1 | 1 | 7 | exists $server_opts{'socket'} || exists $server_opts{'listen'} |
| 508 | 0 | 9 | 0 | defined $access_log || $disable_log |
| 581 | 0 | 0 | 1 | $self->{'user'} or $self->{'group'} |
| 629 | 7 | 3 | 1 | $spec =~ m[/] || $spec =~ /\.(?:pl|psgi)$/i |
| 819 | 2 | 2 | 1 | $user or $group |