Branch Coverage

blib/lib/PubNub/PubSub.pm
Criterion Covered Total %
branch 6 42 14.2


line true false branch
16 0 1 @_ % 2 ? :
23 0 1 $args{'port'} == 443 ? :
32 0 0 if exists $$self{'ua'}
48 0 0 @_ % 2 ? :
60 0 0 if $callback
73 0 3 unless $pub_key
75 0 3 unless $sub_key
77 0 3 unless $channel
78 0 3 unless $params{'messages'}
90 0 0 @_ % 2 ? :
93 0 0 unless $sub_key
95 0 0 unless $channel
97 0 0 unless my $callback = $params{'callback'}
103 0 0 unless ($tx->success)
109 0 0 $callback ? :
110 0 0 unless $rtn
119 0 0 if (scalar @_ == 1 and ref $_[0] ne 'HASH' and $_[0] =~ /^\d+$/)
124 0 0 @_ % 2 ? :
127 0 0 unless $sub_key
129 0 0 unless $channel
134 0 0 unless $tx->success