xsi/FrameIterator.xsi | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | 10 | 18 | 55.5 |
condition | n/a | ||
subroutine | n/a | ||
pod | n/a | ||
total | 16 | 24 | 66.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | MODULE = Protocol::WebSocket::Fast PACKAGE = Protocol::WebSocket::Fast::FrameIterator | ||||||
2 | PROTOTYPES: DISABLE | ||||||
3 | |||||||
4 | FrameSP XSFrameIterator::next () { | ||||||
5 | 142 | RETVAL = THIS->next(); | |||||
6 | 71 | 50 | } | ||||
7 | |||||||
8 | XSMessageIterator* XSFrameIterator::get_messages () { | ||||||
9 | 10 | auto messages = THIS->get_messages(); | |||||
10 | 8 | 100 | if (messages.begin() == messages.end()) XSRETURN_UNDEF; | ||||
50 | |||||||
11 | 3 | 50 | RETVAL = new XSMessageIterator(messages.begin()); | ||||
50 | |||||||
50 | |||||||
12 | 3 | 50 | } | ||||
50 | |||||||
50 |