Branch Coverage

blib/lib/Audio/Xmpcr/Serial.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
44 0 0 if $cmd ne '5AA500050010101001EDED' and not $$self{'_state'}{'power'}
47 0 0 if defined $wcnt
48 0 0 if ($rcnt)
53 0 0 substr($readstr, 0, 6) eq '5aa500' ? :
54 0 0 if $cmd eq '5AA500050010101001EDED'
57 0 0 wantarray ? :
65 0 0 unless defined $status
66 0 0 $status eq 'on' ? :
70 0 0 $status eq 'on' ? :
0 0 unless $res
73 0 0 if ($status eq 'on' and not $res)
86 0 0 unless defined $status
87 0 0 $status eq 'on' ? :
96 0 0 unless defined $chan
108 0 0 $chan ? :
112 0 0 if $err
121 0 0 $chan ? :
150 0 0 unless (-f "$ENV{'HOME'}/.xmpcrd-cache")
151 0 0 unless open F, ">$ENV{'HOME'}/.xmpcrd-cache"
156 0 0 if $ch eq '00' or $lasterr
163 0 0 unless open F, "$ENV{'HOME'}/.xmpcrd-cache"
180 0 0 if ($$self{'_state'}{'power'})
186 0 0 $$self{'_state'}{'power'} ? :