Branch Coverage

blib/lib/Net/MessageBus.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
154 0 20 if ((ref $_[0] || '') eq 'HASH') { }
161 5 15 defined $params{'timeout'} ? :
4 15 defined $params{'timeout'} ? :
1 19 defined $params{'blocking'} ? :
272 0 207 if (ref $_[0] eq 'Net::MessageBus::Message') { }
0 207 elsif (ref $_[0] eq 'HASH') { }
302 8 198 unless (scalar @{$$self{'msgqueue'};})
332 3 0 if (not scalar @{$$self{'msgqueue'};} or $params{'force_read_queue'})
358 1 2 if (defined $_[0])
381 1 2 if (defined $_[0])
382 0 1 unless $_[0] =~ /^\d+(?:\.\d+)?$/
414 0 20 unless $self->authenticate
428 207 31 if (ref $object eq 'Net::MessageBus::Message')
441 0 238 if ($@)
448 0 238 unless ($$response{'status'})
501 236 13 $$self{'blocking'} ? :
506 249 251 unless scalar @ready
510 251 0 if (sysread $ready[0], $buffer, 8192) { }
520 405 238 if (defined $$data{'type'} and $$data{'type'} eq 'message') { }
530 0 0 if ($$self{'auto_reconnect'}) { }