Branch Coverage

blib/lib/PINE64/GPIO.pm
Criterion Covered Total %
branch 0 14 0.0


line true false branch
31 0 0 if ($ind < 0 or $ind > $gpiosz)
35 0 0 if ($direction ne 'in' and $direction ne 'out')
41 0 0 unless open EF, '>', '/sys/class/gpio/export'
46 0 0 unless open GF, '>', "/sys/class/gpio/gpio$iox/direction"
74 0 0 unless open GS, "/sys/class/gpio/gpio$iox/value"
79 0 0 if ($value == 0 or $value == 1) { }
95 0 0 unless open GV, '>', "/sys/class/gpio/gpio$iox/value"