Branch Coverage

blib/lib/Linux/Event/Watcher.pm
Criterion Covered Total %
branch 4 64 6.2


line true false branch
29 0 0 if %args
31 0 0 unless $loop
32 0 0 unless $fh
33 0 0 unless defined $fd
35 0 0 if (defined $read and ref $read ne "CODE")
38 0 0 if (defined $write and ref $write ne "CODE")
41 0 0 if (defined $error and ref $error ne "CODE")
48 0 0 if ref $fh
51 0 0 $read ? :
52 0 0 $write ? :
53 0 0 $error ? :
55 0 0 $edge_triggered ? :
0 0 $oneshot ? :
81 1 0 $self->{'active'} ? :
84 0 0 if (@args)
91 0 0 if (@args)
92 0 0 $args[0] ? :
95 0 0 $self->{'edge_triggered'} ? :
99 0 0 if (@args)
100 0 0 $args[0] ? :
103 0 0 $self->{'oneshot'} ? :
107 0 0 if (defined $cb and ref $cb ne "CODE")
114 0 0 unless ($cb)
123 0 0 if (defined $cb and ref $cb ne "CODE")
128 0 0 unless ($cb)
138 0 0 if (defined $cb and ref $cb ne "CODE")
143 0 0 unless ($cb)
189 0 0 $self->{'read_enabled'} ? :
190 0 0 $self->{'write_enabled'} ? :
191 0 0 $self->{'error_enabled'} ? :
194 1 9 unless $self->{'active'}
195 9 0 Linux::Event::XS::loop_cancel_watcher($self->{'loop'}, $self) ? :