WebSocket/Frame/continuation.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« WebSocket/Frame/binary.pm ↑ Summary WebSocket/Frame/ping.pm »
1 package Net::WebSocket::Frame::continuation;
2  
3 =encoding utf-8
4  
5 =head1 NAME
6  
7 Net::WebSocket::Frame::continuation
8  
9 =head1 SYNOPSIS
10  
11 my $frm = Net::WebSocket::Frame::continuation->new(
12  
13 fin => 1, #default
14  
15 #Optional, can be either empty (default) or four random bytes
16 mask => q<>,
17  
18 payload => $payload,
19 );
20  
21 $frm->get_type(); #"continuation"
22  
23 $frm->is_control(); #0
24  
25 my $mask = $frm->get_mask_bytes();
26  
27 my $payload = $frm->get_payload();
28  
29 my $serialized = $frm->to_bytes();
30  
31 $frm->set_fin(); #turns on
32  
33 =cut
34  
35 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
36 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 8 ▶use parent qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
39 Net::WebSocket::Base::DataFrame
40 8 );
41  
42 8 ▶use constant get_opcode => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44 8 1;
« WebSocket/Frame/binary.pm ↑ Summary WebSocket/Frame/ping.pm »