Branch Coverage

blib/lib/Protocol/WebSocket/URL.pm
Criterion Covered Total %
branch 21 24 87.5


line true false branch
8 0 212 if ref $class
18 6 249 @_ > 1 ? :
20 31 254 @_ > 1 ? :
21 31 229 @_ > 1 ? :
24 31 212 @_ > 1 ? :
32 0 31 unless $scheme
34 6 25 if $scheme =~ /ss$/
37 0 31 unless defined $host and $host ne ''
39 5 15 $self->secure ? :
44 17 14 unless defined $pnq and $pnq ne ''
56 53 128 if $self->secure
59 1 180 if defined $self->port