Branch Coverage

blib/lib/Net/WebSocket/Handshake/Client.pm
Criterion Covered Total %
branch 7 16 43.7


line true false branch
67 2 0 if (length $opts{'uri'})
71 0 2 unless ($opts{'uri_schema'} and $opts{'uri_schema'} =~ /\A(?:ws|http)s?\z/)
75 0 2 unless ($opts{'uri_auth'})
91 1 0 unless (length $path)
95 0 1 if (length $self->{'uri_query'})
115 1 0 $self->{'origin'} ? :
124 0 0 if $received eq $should_be
136 0 2 unless 'MIME::Base64'->can('encode')