File Coverage

xsi/Message.xsi
Criterion Covered Total %
statement 8 9 88.8
branch 1 6 16.6
condition n/a
subroutine n/a
pod n/a
total 9 15 60.0


line stmt bran cond sub pod time code
1             MODULE = Protocol::WebSocket::Fast PACKAGE = Protocol::WebSocket::Fast::Message
2             PROTOTYPES: DISABLE
3              
4             ErrorCode Message::error () {
5 122           RETVAL = THIS->error;
6 61           }
7              
8             int Message::opcode () {
9 33           RETVAL = (int)THIS->opcode();
10             }
11              
12 29           bool Message::is_control ()
13              
14 28           size_t Message::payload_length ()
15              
16             Simple Message::payload () {
17 158 50         RETVAL = strings_to_sv(THIS->payload);
18             }
19              
20 6           uint16_t Message::close_code ()
21              
22 0 0         string Message::close_message ()
    0          
23              
24             int Message::frame_count () {
25 44           RETVAL = THIS->frame_count;
26             }