Branch Coverage

blib/lib/WWW/Suffit/Server.pm
Criterion Covered Total %
branch 0 176 0.0


line true false branch
1233 0 0 scalar @_ == 1 ? :
1238 0 0 @_ > 1 ? :
0 0 @_ ? :
1239 0 0 unless defined $self->project_name
1240 0 0 unless defined $self->project_version
1241 0 0 unless $self->project_name
1242 0 0 unless $self->project_version
1249 0 0 if (my $configobj = $self->configobj)
1250 0 0 unless ref $configobj eq "Config::General"
1253 0 0 unless exists $config_opts->{'noload'}
1257 0 0 if (my $acruxconfig = $self->acruxconfig)
1258 0 0 unless ref $acruxconfig eq "Acrux::Config"
1261 0 0 unless exists $config_opts->{'noload'}
1265 0 0 unless (exists $config_opts->{'noload'})
1266 0 0 unless (exists $config_opts->{'defaults'})
1271 0 0 $self->conf->latest('/log') && $self->conf->latest('/log') =~ /syslog/iu ? :
1272 0 0 unless (exists $syslog_opts->{'enable'})
1281 0 0 if $self->logfile
1291 0 0 unless defined $self->datadir
1292 0 0 unless -e $self->datadir
1295 0 0 unless defined $self->homedir
1300 0 0 -e $documentroot ? :
0 0 unless defined $self->documentroot
1304 0 0 if $self->documentroot ne $self->homedir
1313 0 0 if $self->conf->latest("/secret")
1317 0 0 if ($all_features or is_true_flag($opts->{'init_rsa_keys'} // $self->init_rsa_keys))
1320 0 0 if (not -r $private_key_file || -r $public_key_file) { }
0 0 elsif (not -r $private_key_file) { }
0 0 elsif (not -r $public_key_file) { }
1322 0 0 if $self->rsa_keysize
1339 0 0 if ($all_features or is_true_flag($opts->{'init_authdb'} // $self->init_authdb))
1361 0 0 if $all_features or is_true_flag($opts->{'init_api_routes'} // $self->init_api_routes)
1363 0 0 if $all_features or is_true_flag($opts->{'init_user_routes'} // $self->init_user_routes)
1365 0 0 if $all_features or is_true_flag($opts->{'init_admin_routes'} // $self->init_admin_routes)
1390 0 0 if "File::Spec"->file_name_is_absolute($f)
1396 0 0 $self->server_url ? :
1397 0 0 $self->server_url ? :
1402 0 0 if (is_true_flag($self->conf->latest("/tls")))
1406 0 0 unless length $v
1407 0 0 if $k eq "verify"
1412 0 0 unless length $v
1414 0 0 unless -e $file and -r $file
1426 0 0 if isnt_void($slaves)
1434 0 0 @_ > 1 ? :
0 0 @_ ? :
1438 0 0 unless grep {$_ eq $dash_k;} "start", "status", "stop", "restart", "reload"
1442 0 0 if length $self->pidfile
1445 0 0 if defined $self->clients
1446 0 0 if defined $self->requests
1447 0 0 if defined $self->accepts
1448 0 0 if defined $self->spare
1449 0 0 if defined $self->workers
1458 0 0 if ($dash_k eq 'start') { }
0 0 elsif ($dash_k eq 'stop') { }
0 0 elsif ($dash_k eq 'restart') { }
0 0 elsif ($dash_k eq 'reload') { }
1459 0 0 if (my $pid = $prefork->check_pid)
1464 0 0 if (my $pid = $prefork->check_pid) { }
1472 0 0 if (my $pid = $prefork->check_pid)
1480 0 0 if $up <= 0
1486 0 0 if ($pid)
1487 0 0 if (my $s = $self->reload_sig)
1496 0 0 if (my $pid = $prefork->check_pid) { }
1505 0 0 if (my $s = $self->reload_sig)
1514 0 0 if ($upgrade)
1516 0 0 unless ($reload)
1518 0 0 if ($this->app->reload)
1526 0 0 if ($upgrade + $upgrade_timeout <= &steady_time())
1535 0 0 $graceful ? :
1540 0 0 if (my $gid = $self->gid)
1541 0 0 unless POSIX::setgid($gid)
1543 0 0 unless $( eq "$gid $gid" and $) eq "$gid $gid"
1545 0 0 if (my $uid = $self->uid)
1546 0 0 unless POSIX::setuid($uid)
1547 0 0 unless $< == $uid and $> == $uid
1552 0 0 if (my $prerun = $opts->{'prerun'})
1553 0 0 if ref $prerun eq "CODE"
1557 0 0 unless $self->no_daemonize
1566 0 0 if (my $e = load_class($module))
1567 0 0 ref $e ? :
1576 0 0 if (length $token)
1577 0 0 unless $token =~ /^[A-Za-z0-9_-]{2,}(?:\.[A-Za-z0-9_-]{2,}){2}$/u
1586 0 0 if ($auth_string =~ /(Bearer|Token)\s+(.*)/u)
1588 0 0 unless length $token and $token =~ /^[A-Za-z0-9_-]{2,}(?:\.[A-Za-z0-9_-]{2,}){2}$/u
1593 0 0 if ($self->app->debugmode and $token = $self->conf->latest("/token"))
1594 0 0 unless $token =~ /^[A-Za-z0-9_-]{2,}(?:\.[A-Za-z0-9_-]{2,}){2}$/u
1616 0 0 if $key_size
1620 0 0 $rsa->error ? :