xs/ConnectResponse.xsi

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 36 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 56 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/ConnectRequest.xsi ↑ Summary xs/Error.xsi »
1 MODULE = Protocol::WebSocket::Fast PACKAGE = Protocol::WebSocket::Fast::ConnectResponse
2 PROTOTYPES: DISABLE
3  
4 BOOT {
5 0 ▶ Stash(__PACKAGE__).inherit("Protocol::HTTP::Response");
Branch: 2 branches
BranchTrueFalseTotal
Stash(__PACKAGE__).inherit("Protocol::HTTP::Response"); 0 0 0
Stash(__PACKAGE__).inherit("Protocol::HTTP::Response"); 0 0 0
6 }
7  
8 ConnectResponseSP ConnectResponse::new (Hash params = Hash()) {
9 0 RETVAL = new ConnectResponse();
10 0 ▶ make_response(params, RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
make_response(params, RETVAL); 0 0 0
11 0 ▶}
Branch: 3 branches
BranchTrueFalseTotal
} 0 0 0
} 0 0 0
} 0 0 0
12 0 ▶ 
Branch: 2 branches
BranchTrueFalseTotal
0 0 0
0 0 0
13 0 ▶string ConnectResponse::ws_accept_key ()
Branch: 1 branch
BranchTrueFalseTotal
string ConnectResponse::ws_accept_key () 0 0 0
14  
15 0 ▶string ConnectResponse::ws_version ()
Branch: 1 branch
BranchTrueFalseTotal
string ConnectResponse::ws_version () 0 0 0
16  
17 Array ConnectResponse::ws_extensions (Array exts_av = Array()) {
18 0 ▶ if (exts_av) {
Branch: 1 branch
BranchTrueFalseTotal
if (exts_av) { 0 0 0
19 0 HeaderValues exts;
20 0 ▶ av_to_header_values(exts_av, &exts);
Branch: 1 branch
BranchTrueFalseTotal
av_to_header_values(exts_av, &exts); 0 0 0
21 0 ▶ THIS->ws_extensions(exts);
Branch: 1 branch
BranchTrueFalseTotal
THIS->ws_extensions(exts); 0 0 0
22 0 XSRETURN_UNDEF;
23 0 }
24  
25 0 ▶ RETVAL = header_values_to_av(THIS->ws_extensions());
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = header_values_to_av(THIS->ws_extensions()); 0 0 0
26 }
27  
28 string ConnectResponse::ws_protocol (SV* newval = NULL) {
29 0 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 0 0 0
30 0 ▶ THIS->ws_protocol(xs::in<string>(newval));
Branch: 2 branches
BranchTrueFalseTotal
THIS->ws_protocol(xs::in<string>(newval)); 0 0 0
THIS->ws_protocol(xs::in<string>(newval)); 0 0 0
31 0 XSRETURN_UNDEF;
32 }
33 0 ▶ RETVAL = THIS->ws_protocol();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->ws_protocol(); 0 0 0
34 }
35  
36 0 ErrorCode ConnectResponse::error ()
37 0  
« xs/ConnectRequest.xsi ↑ Summary xs/Error.xsi »