Condition Coverage

blib/lib/Net/Async/NATS.pm
Criterion Covered Total %
condition 19 49 38.7


and 3 conditions

line !l l&&!r l&&r condition
99 0 0 0 defined $subject and length $subject
118 0 0 0 defined $subject and length $subject

or 2 conditions

line l !l condition
28 2 0 $self->{'host'} //= "localhost"
29 2 0 $self->{'port'} //= 4222
30 2 0 $self->{'name'} //= "net-async-nats-perl"
31 0 2 $self->{'verbose'} //= 0
32 0 2 $self->{'pedantic'} //= 0
33 1 1 $self->{'reconnect'} //= 1
34 0 2 $self->{'max_reconnect_attempts'} //= 10
35 0 2 $self->{'reconnect_wait'} //= 2
38 0 2 $self->{'_sid_counter'} //= 0
39 0 2 $self->{'_subscriptions'} //= {}
40 0 2 $self->{'_pending'} //= []
41 0 2 $self->{'_connected'} //= 0
42 0 2 $self->{'_server_info'} //= {}
43 0 2 $self->{'_ping_future'} //= undef
44 0 2 $self->{'_connect_future'} //= undef
101 0 0 $payload //= ""
164 0 0 $opts{'timeout'} // 30
265 2 0 eval { do { &decode_json($1) } } // {}
311 2 0 $VERSION // "0.001"
322 0 0 $self->{'pass'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
45 0 2 0 $self->{'_inbox_prefix'} //= '_INBOX.' . _random_id()