Branch Coverage

blib/lib/RPC/pClient.pm
Criterion Covered Total %
branch 32 72 44.4


line true false branch
73 0 2 unless (defined $$self{'application'} and defined $$self{'version'})
80 0 2 if ($self->_HaveOoStorable) { }
85 0 0 unless (defined $$self{'io'})
92 2 0 if ($$self{'debug'})
97 0 2 unless ($self->_Store([$$self{'application'}, $$self{'version'}, $$self{'user'}, $$self{'password'}]))
104 2 0 if ($$self{'debug'})
108 0 2 unless ($msg)
113 0 2 if (ref $msg ne 'ARRAY')
119 0 2 unless ($$msg[0])
120 0 0 defined $$msg[1] ? :
126 0 2 defined $$msg[1] ? :
152 0 24 if (not $self->_Store([@_])) { }
156 0 24 if (not $msg) { }
0 24 elsif (ref $msg ne 'ARRAY') { }
4 20 elsif (not defined $$msg[0] && $$msg[0]) { }
161 4 0 if (defined $$msg[1] and $$msg[1] ne '') { }
172 4 20 if ($$self{'error'} = $error)
176 24 0 if ($$self{'debug'})
177 4 20 if ($self->error) { }
193 4 20 unless (shift @result)
216 0 0 if (@_ == 2)
217 0 0 if ($self->_HaveOoStorable) { }
223 0 0 $self->_HaveOoStorable ? :
246 2 106 unless (defined $RPC::pClient::haveOoStorable)
249 2 0 $@ ? :
258 0 52 if ($self->_HaveOoStorable)
259 0 0 unless ($result = $$self{'io'}->Retrieve)
271 0 52 if ($result < 0)
279 0 52 if ($$self{'cipher'})
281 0 0 if (my $addSize = $encodedSize % $blockSize)
289 0 52 if ($result < 0)
295 0 52 if ($$self{'cipher'})
310 0 52 if ($self->_HaveOoStorable)
311 0 0 unless ($$self{'io'}->Store($msg))
320 0 52 if ($$self{'cipher'})
323 0 0 if (my $addSize = length($encodedMsg) % $size)