Branch Coverage

inc/Test/TCP.pm
Criterion Covered Total %
branch 24 46 52.1


line true false branch
24 0 14 if (@_) { }
26 0 0 unless $p =~ /^[0-9]+$/ and $p < 49152
34 0 14 if _check_port($port)
35 0 14 $^O eq 'MSWin32' ? :
42 14 0 if $sock
50 0 86 unless exists $args{$k}
68 43 59 if ($remote) { }
82 43 45 if _check_port($port)
93 0 43 @_ == 1 ? :
94 0 43 unless exists $args{'code'}
100 0 43 unless exists $$self{'port'}
101 43 0 if $$self{'auto_start'}
111 43 0 if (my $pid = fork) { }
0 0 elsif ($pid == 0) { }
120 0 0 if (kill 0, $$self{'_my_pid'})
132 0 43 unless defined $$self{'pid'}
133 0 43 unless $$self{'_my_pid'} == $$
144 0 43 if $^O eq 'MSWin32'
148 0 43 if $^O eq 'MSWin32'
154 86 0 if ($^O ne 'MSWin32')
155 43 43 if (POSIX::WIFSIGNALED($?))
157 0 43 if ($signame =~ /^(ABRT|PIPE)$/)
162 43 43 if ($kid == 0 or $kid == -1)