Condition Coverage

blib/lib/PAGI/Server/Runner.pm
Criterion Covered Total %
condition 45 70 64.2


and 3 conditions

line !l l&&!r l&&r condition
212 106 0 10 $args[$i] eq "server_options" and ref $args[$i + 1] eq "HASH"
378 10 0 7 not $self->{'app_spec'} and @argv
441 1 10 0 $use_middleware and $self->mode eq "development"
605 13 0 0 $_current_runner and $PAGI::Server::Runner::_current_runner->{'_pid_file_path'}
624 9 0 0 $self->mode ne "production" and not $self->{'quiet'}
661 0 0 1 $module->can("new") and $module->can("to_app")
699 14 0 0 not defined $app and $!

or 2 conditions

line l !l condition
159 19 47 $args{'quiet'} // 0
0 66 $args{'no_access_log'} // 0
1 65 $args{'daemonize'} // 0
0 66 $args{'libs'} // []
0 66 $args{'modules'} // []
5 61 $args{'server_options'} // {}
369 1 0 ref $app || 'non-reference'
439 1 10 $self->{'default_middleware'} // 1
473 10 6 $self->{'server'} // "PAGI::Server"
486 16 0 $self->{'server_options'} // {}
519 0 14 $self->{'host'} // "127.0.0.1"
7 7 $self->{'port'} // 5000
16 0 $self->{'quiet'} // 0
703 1 0 ref $app || 'non-reference'
769 3 0 $self->{'server'} // "PAGI::Server"
775 0 3 eval { do { require PAGI; "PAGI"->VERSION } } // "unknown"
776 2 1 $server_class->VERSION // "unknown"

or 3 conditions

line l !l&&r !l&&!r condition
511 1 1 14 exists $server_opts{'socket'} || exists $server_opts{'listen'}
519 0 16 0 defined $access_log || $disable_log
592 0 0 9 $self->{'user'} or $self->{'group'}
640 16 3 2 $spec =~ m[/] || $spec =~ /\.(?:pl|psgi)$/i
837 2 2 1 $user or $group