Branch Coverage

lib/RPC/Switch/Client/Tiny/Async.pm
Criterion Covered Total %
branch 36 50 72.0


line true false branch
28 148 4 exists $child->{'runtime'} ? :
29 151 1 exists $child->{'id'} ? :
32 0 152 if ($^O eq 'MSWin32') { }
0 152 elsif (WIFSTOPPED($status)) { }
4 148 elsif (WIFSIGNALED($status)) { }
14 134 elsif (WIFEXITED($status) and $rc) { }
44 45 107 if $self->{'trace_cb'}
51 585 50 $opts{'nonblock'} ? :
61 392 152 if ($res == 0) { }
0 152 elsif ($res < 0) { }
69 0 392 if ($waittime > 2 and $child->{'state'} ne 'kill') { }
0 784 elsif ($waittime > 1 and $child->{'state'} ne 'term') { }
79 0 0 if $flags == 0 and $!{'EINTR'}
80 0 0 unless $^O eq "MSWin32"
93 4 0 if ($child->{'state'} ne "kill")
123 0 165 unless shutdown $child->{'reader'}, 2
124 0 165 unless close $child->{'reader'}
135 193 2 defined $msg_id ? :
136 189 6 defined $msg_vci ? :
141 0 195 unless socketpair my $rd, my $wr, 1, 1, 0
144 0 195 unless defined $pid
146 176 19 if ($pid != 0)
148 51 125 if $self->{'trace_cb'}
174 140 644 unless (keys %{$$self{"jobs"};} < $self->{'max_async'})
192 1 48 if (@msgs)