xsi/MessageIterator.xsi | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | 11 | 18 | 61.1 |
condition | n/a | ||
subroutine | n/a | ||
pod | n/a | ||
total | 17 | 24 | 70.8 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | MODULE = Protocol::WebSocket::Fast PACKAGE = Protocol::WebSocket::Fast::MessageIterator | ||||||
2 | PROTOTYPES: DISABLE | ||||||
3 | |||||||
4 | MessageSP XSMessageIterator::next () { | ||||||
5 | 110 | RETVAL = THIS->next(); | |||||
6 | 55 | 50 | } | ||||
7 | |||||||
8 | XSFrameIterator* XSMessageIterator::get_frames () { | ||||||
9 | 4 | auto frames = THIS->get_frames(); | |||||
10 | 6 | 50 | if (frames.begin() == frames.end()) XSRETURN_UNDEF; | ||||
100 | |||||||
11 | 3 | 50 | RETVAL = new XSFrameIterator(frames.begin()); | ||||
50 | |||||||
100 | |||||||
12 | 1 | 50 | } | ||||
50 | |||||||
50 |