Branch Coverage

blib/lib/Finance/Bitcoin/Feed/Site/CoinSetter/Socket.pm
Criterion Covered Total %
branch 9 24 37.5


line true false branch
52 0 2 unless @pieces
61 0 2 if ($id)
63 0 0 if ($pieces[3]) { }
72 0 2 if ($$packet{'type'} eq 'error') { }
0 2 elsif ($$packet{'type'} eq 'message') { }
1 1 elsif ($$packet{'type'} eq 'event') { }
0 1 elsif ($$packet{'type'} eq 'json') { }
1 0 elsif ($$packet{'type'} eq 'connect') { }
0 0 elsif ($$packet{'type'} eq 'ack') { }
0 0 elsif ($$packet{'type'} eq 'heartbeat') { }
0 0 elsif ($$packet{'type'} eq 'disconnect') { }
81 0 1 unless eval { do { my $opts = decode_json $data; $$packet{'name'} = $$opts{'name'}; $$packet{'args'} = $$opts{'args'} } }