Branch Coverage

blib/lib/HiPi/Device/GPIO.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
49 0 0 unless -d $pinroot
51 0 0 if system "/bin/echo $pinno > $sysroot/unexport"
56 0 0 unless opendir my $dir, $sysroot
71 0 0 -d $pinroot ? :
76 0 0 $level ? :
95 0 0 if ($mode == 1) { }
0 0 elsif ($mode == 0) { }
96 0 0 if ($init) { }
118 0 0 $result eq 'out' ? :
151 0 0 $alow ? :
163 0 0 $result ? :
177 0 0 if ($newedge == 4 or $newedge == 1 or $newedge == 32) { }
0 0 elsif ($newedge == 8 or $newedge == 2 or $newedge == 16) { }
0 0 elsif ($newedge == 3) { }
202 0 0 if ($result eq 'rising') { }
0 0 elsif ($result eq 'falling') { }
0 0 elsif ($result eq 'both') { }
216 0 0 if -d $pinroot
217 0 0 if system "/bin/echo $pinno > $sysroot/export"
224 0 0 if -e $checkpath and -w $checkpath
229 0 0 unless ($counter)
242 0 0 if (-e $filepath) { }
252 0 0 unless sysopen $fh, $filepath, 2050
260 0 0 unless defined sysread($fh, $value, $bytes)
268 0 0 unless defined syswrite($fh, $val)