Branch Coverage

blib/lib/IPC/Manager/Client.pm
Criterion Covered Total %
branch 30 62 48.3


line true false branch
29 0 2 unless $route
31 0 2 unless $PID
32 0 2 if ($PID != $$)
37 8 0 if $_
47 0 102 if $_[0]{'pid'} != $$
66 0 0 unless $pid
70 0 0 if kill 0, $pid
71 0 0 if $! == 3
84 2 6 if (not $PID or $PID != $$)
92 0 8 unless $self->{'serializer'}
93 0 8 unless $self->{'route'}
97 0 8 if $id =~ /^_/
100 0 8 if $self->{'reconnect'}
106 0 26 @_ % 2 ? :
107 8 18 if (@_ == 2 and $_[1] ne "content")
110 0 26 $in ? :
116 8 0 if (@_ == 1 and not builtin::blessed($_[0]) && $_[0]->isa('IPC::Manager::Message'))
123 18 0 $ok ? :
136 18 0 if (eval { do { $self->send_message(@$args); 1 } }) { }
145 18 0 if wantarray
161 0 0 unless $peer_pid
162 0 0 unless $self->pid_is_running($peer_pid)
163 0 0 unless kill 0, $peer_pid
173 8 8 if $self->{'disconnected'}
180 6 0 if (my(@ready) = $self->get_messages)
182 2 4 if (@ready)
183 0 2 if ($handler) { }
201 2 6 if $err
218 0 8 unless $self->{'pid'} and $self->{'pid'} == $$
220 0 8 unless eval { do { $self->disconnect; 1 } }
221 0 8 unless eval { do { $self->write_stats; 1 } }