Branch Coverage

blib/lib/Mojolicious/Plugin/Pubsub.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
20 6 0 if exists $cfg->{'cb'}
21 4 2 unless exists $cfg->{'socket'}
26 0 6 unless pipe my $in, my $out
29 0 6 unless defined $pid
31 3 3 if ($pid) { }
36 0 3 if $result ne 'DONE'
44 3 0 unless (-e $conf->{'socket'} and 'IO::Socket::UNIX'->new('Peer', $conf->{'socket'}))
57 4 0 if ($msg =~ s/^(.+\n)//) { }
70 3 3 unless @streams
78 0 3 unless (defined $server)
88 3 0 unless $loop->is_running
148 3 1 unless (defined $client)
162 0 6 if defined $err
164 3 3 if (defined $client)
166 0 3 if defined $cb
180 4 0 if ($msg =~ s/^(.+)\n//) { }
196 3 0 if defined $cb