Branch Coverage

blib/lib/Device/Velleman/K8055/Fuse.pm
Criterion Covered Total %
branch 13 88 14.7


line true false branch
155 1 5 if (defined $$dev{'initDevice'}) { }
161 1 4 unless ($$self{'testHarness'})
164 0 1 unless -d $$dev{'pathToDevice'}
166 0 1 unless -r $$dev{'pathToDevice'}
168 0 1 unless -w $$dev{'pathToDevice'}
265 0 0 if (scalar @_) { }
275 0 0 if ($val1 != $val2) { }
317 0 0 if $one == undef or $two == undef
350 0 0 unless $one and $two
455 0 0 unless ($val == 1 or $val == 0)
459 0 0 if $$self{'debug'}
461 0 0 if $$self{'debug'}
467 0 0 if ($$self{'debug'})
476 0 0 if ($$self{'debug'})
484 0 0 if $$self{'debug'}
490 0 0 if $$self{'debug'}
515 0 0 unless $r
517 0 0 if $errors
548 0 0 if ($flag eq 'bin')
555 0 0 if $$self{'debug'}
615 0 0 unless exists $$self{'I'}{'i2i'}{$cid}
693 0 0 unless ($time >= 0 and $time <= 5000)
727 0 0 if (not $$self{'testHarness'} and $fh->open("< $file")) { }
0 0 elsif ($$self{'testHarness'}) { }
730 0 0 if (scalar @io != 1)
734 0 0 if $$self{'debug'}
777 0 0 unless defined $val
783 0 0 if (not $$self{'testHarness'} and $fh->open("> $file")) { }
0 0 elsif ($$self{'testHarnes'}) { }
784 0 0 if $$self{'debug'}
873 0 1 if $$p{'-b'}
874 0 1 if $$p{'-U'}
875 1 0 if $$p{'fuseArgs'}
883 0 1 if (not $$self{'testHarness'}) { }
886 0 0 unless -d $$self{'pathToDevice'}
888 0 0 unless -r $$self{'pathToDevice'}
890 0 0 unless -w $$self{'pathToDevice'}
912 2 0 if ($$p{'test'})
916 0 0 unless system($cmd) == 0
919 0 0 if ($? == -1) { }
0 0 elsif ($? & 127) { }
927 0 0 $? & 128 ? :
947 0 1 if ($failed)
948 0 0 if $failed