Branch Coverage

blib/lib/Mojo/Reactor/UV.pm
Criterion Covered Total %
branch 43 50 86.0


line true false branch
23 4 3 if ($UV++) { }
32 2 4 if +(shift())->{'loop_singleton'}
36 1 7 unless my $timer = $self->{'timers'}{$id}
38 2 5 if (defined $after)
41 0 2 if $after < 1
59 514 34576 unless $self->{'running'}
60 10 35080 unless $self->{'loop'}->run(1)
67 0 40 unless defined $remove
68 5 35 if (ref $remove) { }
70 3 2 if (exists $self->{'io'}{$fd})
73 3 0 if $w
77 34 1 if (exists $self->{'timers'}{$remove})
80 34 0 if $w
98 1 24 unless my $io = $self->{'io'}{$fd}
101 19 5 if $read
102 17 7 if $write
105 9 15 unless ($w = $io->{'watcher'})
107 2 22 if ($mode == 0) { }
112 0 35025 if $status < 0
113 34369 656 if 1 & $events
116 3813 0 if 2 & $events and $self->{'io'}{$fd}
126 0 73 if $code < 0
142 4 36 if $recurring and $after < 1
147 29 126 unless $recurring
164 1 38336 unless eval { do { $self->$cb(@_); 1 } }