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
174 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
18 0 1 $args{'host'} ||= 'pubsub.pubnub.com'
19 0 1 $args{'port'} ||= 80
20 0 1 $args{'timeout'} ||= 60
21 0 1 $args{'publish_queue'} ||= []
98 0 0 $params{'timetoken'} || '0'

or 3 conditions

line l !l&&r !l&&!r condition
24 0 1 0 $args{'web_host'} ||= $proto . $args{'host'}
49 0 0 0 $params{'callback'} || $$self{'publish_callback'}
72 0 3 0 $params{'pub_key'} || $$self{'pub_key'}
74 0 3 0 $params{'sub_key'} || $$self{'sub_key'}
76 0 3 0 $params{'channel'} || $$self{'channel'}
92 0 0 0 $params{'sub_key'} || $$self{'sub_key'}
94 0 0 0 $params{'channel'} || $$self{'channel'}
181 0 0 0 delete $params{'sub_key'} || $$self{'sub_key'}
183 0 0 0 delete $params{'channel'} || $$self{'channel'}