blib/lib/Net/MQTT/Simple.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 54 | 0.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
70 | 0 | 0 | 0 | $server =~ /:.*:/ and not $server =~ /\[/ |
128 | 0 | 0 | 0 | defined $password and not $self->_secure || $ENV{'MQTT_SIMPLE_ALLOW_INSECURE_LOGIN'} |
141 | 0 | 0 | 0 | $self->{'socket'} and $self->{'socket'}->connected |
205 | 0 | 0 | 0 | $will and $will->{'retain'} |
208 | 0 | 0 | 0 | defined $self->{'username'} and defined $self->{'password'} |
430 | 0 | 0 | 0 | $self->{'ping'} and time >= $self->{'ping'} + $PING_TIMEOUT |
441 | 0 | 0 | 0 | $self->{'socket'} and $self->{'socket'}->connected |
line | l | !l | condition |
---|---|---|---|
78 | 0 | 0 | $sockopts // {} |
104 | 0 | 0 | ($topic // $old{'topic'}) // "" |
0 | 0 | ($message // $old{'message'}) // "" | |
0 | 0 | (!!$retain // $old{'retain'}) // 0 | |
323 | 0 | 0 | $message //= "" |
415 | 0 | 0 | $timeout // 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
65 | 0 | 0 | 0 | @_ == 2 or @_ == 3 |
73 | 0 | 0 | 0 | not $server =~ /:/ or $server =~ /^\[.*\]$/ |
95 | 0 | 0 | 0 | defined $topic || defined $message |
104 | 0 | 0 | 0 | $topic // $old{'topic'} |
0 | 0 | 0 | $message // $old{'message'} | |
0 | 0 | 0 | !!$retain // $old{'retain'} | |
128 | 0 | 0 | 0 | $self->_secure || $ENV{'MQTT_SIMPLE_ALLOW_INSECURE_LOGIN'} |