| line |
true |
false |
branch |
|
21
|
0 |
2 |
$^O eq 'MSWin32' || $^O eq 'cygwin' ? : |
|
23
|
0 |
2 |
if ($IS_WINDOWS) { } |
|
25
|
0 |
0 |
if $@ |
|
28
|
0 |
2 |
if $@ |
|
38
|
0 |
1 |
unless (defined $params{'devicetype'}) |
|
42
|
0 |
1 |
if ($params{'devicetype'} ne 'sign' and $params{'devicetype'} ne 'badge') |
|
68
|
1 |
0 |
if (defined $params{'clipart'}) |
|
77
|
0 |
1 |
unless (defined $params{'data'}) |
|
94
|
1 |
0 |
if (defined $params{'clipart'}) |
|
101
|
0 |
1 |
unless (defined $params{'data'}) |
|
117
|
0 |
3 |
if ($this->_msgfactory->{'msgcount'} >= 8) |
|
122
|
0 |
3 |
unless (defined $params{'data'}) |
|
126
|
0 |
3 |
unless (defined $params{'speed'}) |
|
129
|
0 |
3 |
unless ($params{'speed'} =~ /^[1-5]$/) |
|
134
|
0 |
3 |
if (not defined $params{'effect'}) { } |
|
138
|
0 |
3 |
unless (grep /^$params{'effect'}$/, @effects) |
|
143
|
0 |
3 |
if (exists $params{'slot'}) { } |
|
144
|
0 |
0 |
if (not $params{'slot'} =~ /^[1-8]$/) { } |
|
165
|
0 |
0 |
$^O eq 'MSWin32' || $^O eq 'cygwin' ? : |
|
166
|
0 |
0 |
if ($IS_WINDOWS) { } |
|
171
|
0 |
0 |
unless $serial |
|
184
|
0 |
1 |
unless (defined $params{'device'}) |
|
189
|
0 |
1 |
if (defined $params{'baudrate'}) { } |
|
195
|
0 |
0 |
if (not grep({$_ eq $params{'baudrate'};} @validrates)) { } |
|
206
|
0 |
1 |
if (defined $params{'packetdelay'}) { } |
|
207
|
0 |
0 |
if ($params{'packetdelay'} > 0 and $params{'packetdelay'} =~ /^\d*\.{0,1}\d*$/) { } |
|
219
|
1 |
0 |
if (defined $params{'debug'}) { } |
|
256
|
0 |
1 |
if (exists $params{'showslots'}) { } |
|
260
|
0 |
0 |
if (not $one =~ /^[1-8]$/) { } |
|
272
|
1 |
0 |
if ($bits != 0) |
|
277
|
1 |
0 |
if (defined $params{'debug'}) |
|
307
|
3 |
0 |
if (not defined $slot) { } |
|
310
|
3 |
3 |
unless (exists $$this{'msgslots'}{$_}) |
|
317
|
0 |
0 |
if (exists $$this{'msgslots'}{$slot}) { } |
|
377
|
1 |
0 |
if (defined $$this{'icontag'}{$icontag}) { } |
|
400
|
0 |
2 |
if (exists $$this{'chunkcache'}{$chunk}) { } |
|
406
|
0 |
1 |
if ($len > 32) { } |
|
414
|
1 |
1 |
if ($type eq 'pixmap') { } |
|
|
1 |
0 |
elsif ($type eq 'icon') { } |
|
431
|
1 |
0 |
if ($length % 64) |
|
474
|
1 |
0 |
if (defined $$this{'pixtag'}{$pixtag}) { } |
|
508
|
0 |
3 |
if ($type eq 'badge') { } |
|
544
|
0 |
3 |
unless ($effect) |
|
548
|
0 |
3 |
unless ($speed) |
|
561
|
3 |
9 |
if ($i == 0) { } |
|
570
|
3 |
9 |
if ($i == 0) |
|
621
|
1 |
1 |
if ($$this{'objtype'} eq 'pixmap') { } |
|
|
1 |
0 |
elsif ($$this{'objtype'} eq 'icon') { } |
|
624
|
1 |
0 |
if ($devicetype eq 'sign') { } |
|
|
0 |
0 |
elsif ($devicetype eq 'badge') { } |
|
632
|
1 |
0 |
if ($devicetype eq 'sign') { } |
|
|
0 |
0 |
elsif ($devicetype eq 'badge') { } |
|
642
|
0 |
2 |
if ($length < $width * $height) |
|
647
|
0 |
2 |
$width % $tilesize ? : |
|
659
|
48 |
0 |
if ($row <= $height) { } |
|
660
|
48 |
0 |
if ($chunkend <= $width) { } |
|
687
|
1 |
1 |
if ($objtype eq 'pixmap') { } |
|
|
1 |
0 |
elsif ($objtype eq 'icon') { } |
|
711
|
0 |
1 |
unless (defined $$this{'height'}) |
|
715
|
0 |
1 |
if (defined $$this{'height'} and $$this{'height'} < 1) |
|
719
|
0 |
1 |
unless (defined $$this{'width'}) |
|
723
|
0 |
1 |
if (defined $$this{'width'} and $$this{'width'} < 1 || $$this{'width'} > 256) |
|
727
|
0 |
1 |
unless (defined $$this{'data'}) |
|
731
|
0 |
1 |
unless (defined $$this{'devicetype'}) |
|
756
|
0 |
1 |
unless (defined $$this{'data'}) |
|
760
|
0 |
1 |
unless (defined $$this{'devicetype'}) |
|
780
|
0 |
3 |
unless (defined $params{'type'}) |
|
784
|
0 |
3 |
if ($params{'type'} ne 'pix' and $params{'type'} ne 'icon') |
|
789
|
2 |
1 |
if (defined $params{'name'}) { } |
|
791
|
2 |
0 |
if ($$this{'hashref'} = $this->set('name', $params{'name'})) { } |
|
1143
|
1 |
2 |
if ($$this{'type'} eq 'icon') { } |
|
|
2 |
0 |
elsif ($$this{'type'} eq 'pix') { } |
|
1160
|
3 |
0 |
if (exists $HASH{$name}) |