Branch Coverage

blib/lib/Finance/Bitcoin/Feed/Site/BtcChina.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
22 1 1 unless ($tx->is_websocket)
99 0 0 if (time - $self->last_ping_at > $self->ping_interval / 1000)
112 0 4 unless $data =~ /^\d+/
116 1 3 if ($code == 0) { }
1 2 elsif ($code == 3) { }
1 1 elsif ($code == 41) { }
1 0 elsif ($code == 42) { }
121 1 0 if $$json_data{'pingInterval'}
123 1 0 if $$json_data{'pingTimeout'}