Branch Coverage

blib/lib/Protocol/WebSocket/Client.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
13 0 9 if ref $class
19 0 9 unless $params{'url'}
21 0 9 unless $self->{'url'} = 'Protocol::WebSocket::URL'->new->parse($params{'url'})
37 3 6 if exists $params{'max_payload_size'}
63 2 1 unless ($hs->is_done)
64 0 2 unless ($hs->parse($buffer))
69 1 1 if $self->{'on_connect'} and $hs->is_done
72 3 0 if ($hs->is_done)
89 0 1 ref $buffer ? :