Branch Coverage

blib/lib/Net/WebSocket/Handshake/Server.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
68 1 1 if ($protocol ne 'HTTP/1.1')
88 1 1 if ($method ne 'GET')
100 3 10 if ($name eq 'sec-websocket-version') { }
2 8 elsif ($name eq 'sec-websocket-key') { }
1 7 elsif ($name eq 'sec-websocket-protocol') { }
101 1 2 if ($value ne 13)
114 2 1 unless (defined $self->{'_subprotocol'})
136 1 1 defined $self->{'_subprotocol'} ? :
2 0 if $self->{'_no_use_legacy'}
146 0 2 unless $self->{'_version_ok'}
147 0 2 unless $self->{'key'}
149 0 2 if @needed