Branch Coverage

blib/lib/Test/HTTP/LocalServer.pm
Criterion Covered Total %
branch 14 36 38.8


line true false branch
136 0 17 unless defined(my $pid = fork)
137 9 8 if ($pid)
143 0 8 unless setsid() != -1
147 0 0 unless exec @cmd
152 0 17 if ($^O =~ /mswin/i) { }
171 0 17 if delete $args{'debug'}
174 0 17 if (my $html = delete $args{'html'})
178 0 0 unless print $fh $html
198 0 17 if $args{'eval'}
212 0 9 unless $server
219 0 9 unless $url
237 0 0 unless $_[0]->server_url
303 0 0 if ($pid and CORE::kill 0, $pid)
307 0 0 unless CORE::kill "KILL", $pid
329 4 5 if $_[0]->server_url
331 0 9 unless unlink $file
333 0 9 if ($_[0]{'_pid'} and CORE::kill 0, $_[0]{'_pid'})
353 0 0 'File::Spec'->file_name_is_absolute($htmlfile) ? :