Condition Coverage

blib/lib/PubNub/PubSub.pm
Criterion Covered Total %
condition 8 43 18.6


and 3 conditions

line !l l&&!r l&&r condition
184 0 0 0 scalar @_ == 1 and ref $_[0] ne 'HASH'
0 0 0 scalar @_ == 1 and ref $_[0] ne 'HASH' and $_[0] =~ /^\d+$/

or 2 conditions

line l !l condition
20 0 1 $args{'host'} ||= 'pubsub.pubnub.com'
21 0 1 $args{'port'} ||= 80
22 0 1 $args{'timeout'} ||= 60
23 0 1 $args{'publish_queue'} ||= []
106 0 0 $params{'timetoken'} || '0'

or 3 conditions

line l !l&&r !l&&!r condition
26 0 1 0 $args{'web_host'} ||= $proto . $args{'host'}
51 0 0 0 $params{'callback'} || $self->{'publish_callback'}
75 0 0 3 $params{'pub_key'} || $self->{'pub_key'}
77 0 0 3 $params{'sub_key'} || $self->{'sub_key'}
79 0 0 3 $params{'channel'} || $self->{'channel'}
100 0 0 0 $params{'sub_key'} || $self->{'sub_key'}
102 0 0 0 $params{'channel'} || $self->{'channel'}
191 0 0 0 delete $params{'sub_key'} || $self->{'sub_key'}
193 0 0 0 delete $params{'channel'} || $self->{'channel'}