| blib/lib/Protocol/WebSocket/URL.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 9 | 13 | 69.2 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 37 | 0 | 0 | 31 | defined $host and $host ne '' |
| 44 | 17 | 0 | 14 | defined $pnq and $pnq ne '' |
| line | l | !l | condition |
|---|---|---|---|
| 13 | 53 | 159 | $self->{'secure'} ||= 0 |
| 60 | 137 | 44 | $self->resource_name || '/' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 39 | 11 | 20 | 0 | $port ||= $self->secure ? 443 : 80 |