Branch Coverage

blib/lib/Net/MessageBus/Server.pm
Criterion Covered Total %
branch 8 50 16.0


line true false branch
112 0 2 if ((ref $_[0] || '') eq 'HASH') { }
166 0 0 unless scalar @ready
170 0 0 if ($fh == $$self{'server_socket'}) { }
174 0 0 unless $new
191 0 0 if ($text) { }
204 0 0 if ($@) { }
0 0 elsif ($$request{'type'} eq 'message') { }
0 0 elsif ($$request{'type'} eq 'authenticate') { }
0 0 elsif ($$request{'type'} eq 'subscribe') { }
262 0 2 if (defined $$self{'pid'} and kill 0, $$self{'pid'})
279 2 0 if ($pid = fork) { }
302 0 2 unless (defined $$self{'pid'} and kill 0, $$self{'pid'})
307 0 2 if ($^O =~ /Win/i) { }
317 0 2 if (kill 0, $$self{'pid'})
336 2 2 unless (defined $$self{'pid'} and kill 0, $$self{'pid'})
401 0 0 if (defined $$data{'all'}) { }
0 0 elsif (defined $$data{'group'}) { }
0 0 elsif (defined $$data{'sender'}) { }
0 0 elsif (defined $$data{'type'}) { }
0 0 elsif (defined $$data{'unsubscribe'}) { }
460 0 0 unless $$self{'subscriptions'}{'all'}
461 0 0 unless $$self{'subscriptions'}{'groups'}{$message->group}
462 0 0 unless $$self{'subscriptions'}{'senders'}{$message->sender}
463 0 0 unless $$self{'subscriptions'}{'types'}{$message->type or ''}
490 0 0 if ($@)