Branch Coverage

blib/lib/Device/MAS345.pm
Criterion Covered Total %
branch 3 18 16.6


line true false branch
36 0 0 if defined $err
51 1 1 if ($data =~ /(\w+)\s+($valrx)\s+(\w+)/) { }
1 0 elsif ($data =~ /(\w+)\s+($valrx)(kOhm|MOhm)/) { }
0 0 elsif ($data =~ /($valrx)/) { }
68 0 0 unless $$self{'serial'}->purge_all
75 0 0 unless $$self{'serial'}->write("\n")
85 0 0 if ($count != $$self{'bytes'})
100 0 0 unless $$self{'serial'}->baudrate($$self{'baudrate'})
103 0 0 unless $$self{'serial'}->databits($$self{'databits'})