Branch Coverage

blib/lib/AnyEvent/WebSocket/Server.pm
Criterion Covered Total %
branch 24 36 66.6


line true false branch
15 0 45 if (defined $validator and ref $validator ne 'CODE')
20 3 21 defined $validator ? :
21 24 defined $args{'handshake'} ? :
21 0 45 if (ref $handshake ne 'CODE')
35 4 0 if ($fatal) { }
45 68 68 unless (defined $self->{'ssl_key_file'} or defined $self->{'ssl_cert_file'})
48 0 135 unless (defined $self->{'ssl_cert_file'})
55 67 68 defined $self->{'ssl_key_file'} ? :
72 4 401 unless (defined $handshake->parse($handle->{'rbuf'}))
75 206 195 unless $handshake->is_done
76 0 195 if ($handshake->version ne 'draft-ietf-hybi-17')
80 3 183 unless (defined $res)
83 180 3 if (ref $res eq 'Protocol::WebSocket::Response')
99 203 0 if defined $handle
105 1 203 unless (defined $fh)
117 0 0 unless (defined $env)
121 0 0 unless defined $fh
122 0 0 unless (defined $fh)