Branch Coverage

blib/lib/Device/Hypnocube.pm
Criterion Covered Total %
branch 0 76 0.0


line true false branch
200 0 0 if ($$args{'serial'}) { }
242 0 0 if $$self{'serial'}{'activity'}
257 0 0 if $self->login_state
261 0 0 if ($$resp{'cmd'} == 25 or $$resp{'cmd'} == 20 and $self->error_info->{'code'} == 0) { }
266 0 0 if (-f '/tmp/hypnocube.buffer')
271 0 0 if ($hashref) { }
294 0 0 unless $self->login_state
312 0 0 if $self->has_info
389 0 0 if ($elapsed < 3333)
415 0 0 if (not $r) { }
420 0 0 if ($c == 192)
444 0 0 if ($packet{'cmd'} == 20) { }
473 0 0 $type ? :
490 0 0 if ($c == 192) { }
0 0 elsif ($c == 219) { }
517 0 0 if $data
519 0 0 unless (defined $cmd or defined $data)
535 0 0 if ($size > 50) { }
556 0 0 unless $noresp
570 0 0 unless ($self->login_state)
577 0 0 if (scalar @bytes and defined $bytes[0]) { }
584 0 0 if ($$resp{'cmd'} == 25)
630 0 0 if ($color =~ /^rand(om)?/i)
635 0 0 if ($color =~ /^(?:0[xX]|#)([[:xdigit:]]+)$/ and not defined $green and not defined $blue)
637 0 0 if (length $c == 2) { }
0 0 elsif (length $c == 6) { }
652 0 0 if ($color =~ /^\d+/ and not defined $green and not defined $blue) { }
0 0 elsif (not $colors{$color} || defined $green || defined $blue) { }
659 0 0 if $colors{$color}
726 0 0 if (not defined $x && defined $y && defined $z or $x < 0 or $y < 0 or $z < 0)
735 0 0 if (defined $color and not defined $green and not defined $blue)
741 0 0 if (int $color == $color and int $green == $green and int $blue == $blue) { }
760 0 0 if not defined $plane or $plane < 0 or $plane > 3
779 0 0 if not defined $plane or $plane < 0 or $plane > 3
795 0 0 if not defined $plane or $plane < 0 or $plane > 3
825 0 0 if ($count & 1) { }
837 0 0 if $count >= 64
855 0 0 if $self->verbose