Branch Coverage

blib/lib/Device/Yeelight/Light.pm
Criterion Covered Total %
branch 0 20 0.0


line true false branch
44 0 0 if defined $self->{'_socket'}
57 0 0 unless (grep {$method =~ /::$_$/u;} @{$$self{'support'};})
67 0 0 unless $self->is_supported($AUTOLOAD)
86 0 0 if defined $self->{'_socket'} and $self->{'_socket'}->connected
88 0 0 unless $self->{'_socket'} = 'IO::Socket::INET'->new('PeerAddr', $addr, 'PeerPort', $port, 'ReuseAddr', 1, 'Proto', 'tcp')
116 0 0 unless $self->connection->send("$json\r\n")
123 0 0 unless defined $response->{'id'}
125 0 0 if $response->{'id'} != $id
126 0 0 if (defined $response->{'error'})
151 0 0 unless $self->is_supported((caller 0)[3])