Branch Coverage

blib/lib/Linux/Joystick.pm
Criterion Covered Total %
branch 0 66 0.0


line true false branch
20 0 0 if (@_ == 1) { }
34 0 0 unless $$self{'fh'}
35 0 0 if $$self{'fh'}
38 0 0 $$self{'fh'} ? :
122 0 0 if ($nonbl) { }
150 0 0 if ($ev->_isInit)
151 0 0 if ($ev->isAxis)
152 0 0 if $ev->axis > $max_axes
155 0 0 if ($ev->isButton)
156 0 0 if $ev->button > $max_buttons
193 0 0 if ($$self{'device'} =~ /\D/) { }
198 0 0 if -r $test
210 0 0 if $$self{'nonblocking'}
211 0 0 if (sysopen $fh, "$realdevice", $flags)
236 0 0 $self->_parse ? :
293 0 0 if defined $$self{'button'}
294 0 0 if defined $$self{'axis'}
302 0 0 if ($self->isAxis) { }
346 0 0 if (defined $$self{'button'}) { }
347 0 0 if (defined $but) { }
362 0 0 if (defined $$self{'button'}) { }
363 0 0 if (defined $but) { }
384 0 0 unless (defined $$self{'data'})
389 0 0 if ($$self{'nonblocking'} and length $$self{'data'} == 0)
393 0 0 if (length $$self{'data'} != 8)
404 0 0 if ($$self{'type'} & 2)
408 0 0 if ($$self{'type'} & 1)
413 0 0 if (($$self{'type'} & 3) == 3)
434 0 0 unless $self->isAxis
438 0 0 if (defined $stick)
439 0 0 unless $self->axis >> 1 == $stick
442 0 0 if ($self->axis % 2 == $evenOdd)
443 0 0 if &$compFunc()