Branch Coverage

blib/lib/Finance/Bitcoin/Feed/Pusher.pm
Criterion Covered Total %
branch 3 62 4.8


line true false branch
79 1 3 if exists $args{$attribute}
86 0 0 unless $self->channels
87 0 0 unless $self->protocol
88 0 0 unless $self->app_key
89 0 0 unless $self->ssl
123 0 0 unless ($self->client->is_done)
128 0 0 if ($self->frame->is_ping)
138 0 0 unless (eval { do { $d = $self->json->decode($msg) } })
144 0 0 if ($$d{'event'} eq 'pusher:connection_established') { }
0 0 elsif ($$d{'event'} eq 'pusher_internal:subscription_succeeded') { }
0 0 elsif ($$d{'event'} eq 'trade') { }
0 0 elsif ($$d{'event'} eq 'data') { }
145 0 0 if VERBOSE()
147 0 0 if VERBOSE()
161 0 0 if VERBOSE()
166 0 0 if VERBOSE()
168 0 0 if ($$d{'channel'} eq 'live_trades') { }
172 0 0 if VERBOSE()
176 0 0 if VERBOSE()
178 0 0 if ($$d{'channel'} eq 'order_book') { }
182 0 0 if VERBOSE()
188 0 0 if VERBOSE()
199 0 0 if VERBOSE()
221 0 0 if VERBOSE() or DEBUG()
231 0 0 if VERBOSE() or DEBUG()
240 0 0 (shift())->ssl ? :
241 0 0 (shift())->ssl ? :
242 0 0 (shift())->ssl ? :
243 0 0 (shift())->ssl ? :
258 1 0 if scalar @_
264 0 0 unless ($$self{'uri'})