| blib/lib/Net/WebSocket/Frame/close.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| branch | 3 | 20 | 15.0 | 
| line | true | false | branch | 
|---|---|---|---|
| 102 | 0 | 0 | unless ($opts{'payload_sr'}) | 
| 105 | 0 | 0 | if ($opts{'code'}) { } | 
| 107 | 0 | 0 | unless ($num) | 
| 110 | 0 | 0 | unless ($num =~ /\A[0-9]{4}\z/) | 
| 114 | 0 | 0 | unless (Net::WebSocket::Constants::status_code_to_name($num)) | 
| 115 | 0 | 0 | if ($num < 4000 or $num > 4999) | 
| 123 | 0 | 0 | if (defined $opts{'reason'}) | 
| 124 | 0 | 0 | if (length $opts{'reason'} > 123) | 
| 147 | 0 | 15 | if ($self->get_type ne 'close') | 
| 152 | 5 | 10 | unless length ${$$self[$self->PAYLOAD];} |