Branch Coverage

blib/lib/Mojo/Reactor/UV.pm
Criterion Covered Total %
branch 40 46 86.9


line true false branch
23 4 3 if ($UV++) { }
32 2 4 if +(shift())->{'loop_singleton'}
36 1 5 unless my $timer = $self->{'timers'}{shift()}
51 606 39440 unless $self->{'running'}
52 8 40038 unless $self->{'loop'}->run(1)
59 0 37 unless defined $remove
60 5 32 if (ref $remove) { }
62 3 2 if (exists $self->{'io'}{$fd})
65 3 0 if $w
69 31 1 if (exists $self->{'timers'}{$remove})
72 31 0 if $w
90 1 23 unless my $io = $self->{'io'}{$fd}
93 18 5 if $read
94 17 6 if $write
97 9 14 unless ($w = $io->{'watcher'})
99 2 21 if ($mode == 0) { }
104 0 39949 if $status < 0
105 39166 783 if 1 & $events
108 4446 0 if 2 & $events and $self->{'io'}{$fd}
118 0 65 if $code < 0
134 4 33 if $recurring and $after < 1
139 27 172 unless $recurring
156 1 43810 unless eval { do { $self->$cb(@_); 1 } }