File Coverage

xsi/ServerParser.xsi
Criterion Covered Total %
statement 11 11 100.0
branch 18 32 56.2
condition n/a
subroutine n/a
pod n/a
total 29 43 67.4


line stmt bran cond sub pod time code
1             MODULE = Protocol::WebSocket::Fast PACKAGE = Protocol::WebSocket::Fast::ServerParser
2             PROTOTYPES: DISABLE
3              
4             BOOT {
5 18 50         Stash(__PACKAGE__).inherit("Protocol::WebSocket::Fast::Parser");
    50          
6             }
7              
8 194           ServerParser* ServerParser::new (Parser::Config cfg = {})
9 97 50          
10 122 50         bool ServerParser::accept_parsed ()
    50          
11              
12 27           bool ServerParser::accepted ()
13              
14             ConnectRequestSP ServerParser::accept (string buf) {
15 588           RETVAL = THIS->accept(buf);
16 294 50         }
17              
18             string ServerParser::accept_error (panda::protocol::http::ResponseSP res = nullptr) {
19 9 100         if (!res) RETVAL = THIS->accept_error();
    50          
    50          
20 3 50         else RETVAL = THIS->accept_error(res);
    50          
21             }
22              
23             string ServerParser::accept_response (ConnectResponseSP res = nullptr) {
24 206 100         if (!res) RETVAL = THIS->accept_response();
    50          
    50          
25 1 50         else RETVAL = THIS->accept_response(res);
    50          
26             }