Condition Coverage

blib/lib/Net/MQTT/Simple.pm
Criterion Covered Total %
condition 0 54 0.0


and 3 conditions

line !l l&&!r l&&r condition
75 0 0 0 $server =~ /:.*:/ and not $server =~ /\[/
133 0 0 0 defined $password and not $self->_secure || $ENV{'MQTT_SIMPLE_ALLOW_INSECURE_LOGIN'}
146 0 0 0 $self->{'socket'} and $self->{'socket'}->connected
210 0 0 0 $will and $will->{'retain'}
213 0 0 0 defined $self->{'username'} and defined $self->{'password'}
435 0 0 0 $self->{'ping'} and time >= $self->{'ping'} + $PING_TIMEOUT
446 0 0 0 $self->{'socket'} and $self->{'socket'}->connected

or 2 conditions

line l !l condition
83 0 0 $sockopts // {}
109 0 0 ($topic // $old{'topic'}) // ""
0 0 ($message // $old{'message'}) // ""
0 0 (!!$retain // $old{'retain'}) // 0
328 0 0 $message //= ""
420 0 0 $timeout // 0

or 3 conditions

line l !l&&r !l&&!r condition
70 0 0 0 @_ == 2 or @_ == 3
78 0 0 0 not $server =~ /:/ or $server =~ /^\[.*\]$/
100 0 0 0 defined $topic || defined $message
109 0 0 0 $topic // $old{'topic'}
0 0 0 $message // $old{'message'}
0 0 0 !!$retain // $old{'retain'}
133 0 0 0 $self->_secure || $ENV{'MQTT_SIMPLE_ALLOW_INSECURE_LOGIN'}