blib/lib/Ado/Command/generate/apache2vhost.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 19 | 36.8 |
line | l | !l | condition |
---|---|---|---|
26 | 0 | 1 | $args->{'port'} //= 80 |
33 | 0 | 1 | $ENV{'USER'} || getlogin || 'nobody' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
26 | 0 | 1 | 0 | $args->{'DocumentRoot'} //= $home |
31 | 0 | 1 | 0 | $args->{'ServerAlias'} //= $args->{'ServerName'} =~ /^www\./ ? $args->{'ServerName'} : 'www.' . $args->{'ServerName'} |
32 | 0 | 1 | 0 | $args->{'ServerAdmin'} //= 'webmaster@' . $args->{'ServerName'} |
33 | 0 | 1 | 0 | $args->{'user'} //= $ENV{'USER'} || getlogin || 'nobody' |
34 | 0 | 1 | 0 | $args->{'group'} //= $args->{'user'} |