Branch Coverage

blib/lib/Test/Stream/Sync.pm
Criterion Covered Total %
branch 58 58 100.0


line true false branch
78 146 32 $INIT ? :
83 23 103 if $LOADED
90 61 106 if $LOADED or not @_
92 103 3 if ($_[0])
104 169 6 unless ($FORMAT)
106 15 154 if ($ENV{'TS_FORMATTER'}) { }
116 164 5 unless $mod =~ s/^\+//
120 5 164 unless (eval { do { require $file; 1 } })
130 19 151 unless $INC{'Test/Stream/IPC.pm'}
138 15 110 unless $code and $rtype eq 'CODE'
144 2388 130 if $INIT
150 141 5 if $INIT
157 6 11 if $FORMAT
158 5 6 unless $FORMAT = pop()
162 136 25 if $INIT
169 23 33 if @_
179 109 12 if $pid == -1
180 6 6 unless $err
200 103 6 unless $fail
210 11 125 if ($PID != $$ or $TID != 0)
215 119 6 $STACK ? :
217 102 17 if (@hubs and $IPC and not $NO_WAIT)
221 6 105 unless my $ipc = $hub->ipc
222 3 102 if $seen{$ipc}++
231 119 6 if (my $root = shift @hubs)
241 6 113 if (@hubs)
246 116 3 unless ($root->no_ending)
248 22 94 unless $root->state->ended
254 3 122 if $new_exit > 255