Branch Coverage

src/panda/protocol/websocket/Message.cc
Criterion Covered Total %
branch 19 22 86.3


line true false branch
7 0 348 assert(_state != State::DONE);
9 24 324 if (frame.error) {
15 194 130 if (!frame_count++) {
17 6 188 if (_opcode == Opcode::CLOSE) {
19 6 0 _close_message = frame.close_message();
23 6 318 if (_max_size && _payload_length + frame.payload_length() > _max_size) {
2 4 if (_max_size && _payload_length + frame.payload_length() > _max_size) {
2 322 if (_max_size && _payload_length + frame.payload_length() > _max_size) {
29 2292 322 for (const auto& s : frame.payload) {
31 2292 0 payload.push_back(s);
34 186 136 if (frame.final()) _state = State::DONE;