Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
72 0 0 0 $server =~ /:.*:/ and not $server =~ /\[/
130 0 0 0 defined $password and not $self->_secure || $ENV{'MQTT_SIMPLE_ALLOW_INSECURE_LOGIN'}
143 0 0 0 $self->{'socket'} and $self->{'socket'}->connected
211 0 0 0 $will and $will->{'retain'}
214 0 0 0 defined $self->{'username'} and defined $self->{'password'}
441 0 0 0 $self->{'ping'} and time >= $self->{'ping'} + $PING_TIMEOUT
496 0 0 0 $got_ref and wantarray
504 0 0 0 $self->{'socket'} and $self->{'socket'}->connected

or 2 conditions

line l !l condition
80 0 0 $sockopts // {}
106 0 0 ($topic // $old{'topic'}) // ""
0 0 ($message // $old{'message'}) // ""
0 0 (!!$retain // $old{'retain'}) // 0
334 0 0 $message //= ""
426 0 0 $timeout // 0
467 0 0 $timeout ||= 1

or 3 conditions

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