Branch Coverage

lib/Provision/Unix/Web.pm
Criterion Covered Total %
branch 19 46 41.3


line true false branch
34 0 1 unless $$self{'server'} = $self->_get_server('debug', $p{'debug'}, 'fatal', $p{'fatal'})
67 0 1 unless my $chosen_server = $$prov{'config'}{'Web'}{'server'}
73 0 1 unless $chosen_server
75 1 0 if ($chosen_server eq 'apache') { }
0 0 elsif ($chosen_server eq 'lighttpd') { }
120 0 2 if ($p{'prompt'})
124 0 2 unless my $vhost = $$vals{'vhost'}
127 0 2 if ($p{'prompt'})
133 2 0 unless ($$vals{'documentroot'})
140 0 2 if ($p{'prompt'}) { }
151 0 2 if ($p{'prompt'})
155 0 2 if ($$vals{'ssl'})
159 0 0 if ($p{'prompt'})
170 0 4 if $key eq 'debug'
171 0 4 if $key eq 'phpmyadmin'
172 0 4 if $key =~ /ssl/
173 0 4 if $key =~ /custom/
174 0 4 if $key eq 'options'
175 0 4 if $key eq 'verbose'
176 0 4 if $key eq 'redirect'
178 0 4 unless defined $val
193 0 0 unless ($dir and -d $dir)
205 0 0 unless ($dir)