Branch Coverage

src/panda/protocol/websocket/utils.cc
Criterion Covered Total %
branch 10 32 31.2


line true false branch
17 0 0 for (hash = i = 0; i < len; ++i) {
29 19190 56339 if (shift % 32 == 0) return x;
31 56339 0 ((x << shift) | (x >> (sizeof(x)*8 - shift)));
40 24721 75529 while (str64 != end64) *str64++ ^= mask64;
55 18 0 static std::map close_messages = {
234 18 static std::map close_messages = {
0 0 static std::map close_messages = {
72 0 0 auto iter = close_messages.find(code);
73 0 0 if (iter == close_messages.end()) {
74 0 0 return to_string(code);
76 0 0 return iter->second;
82 0 0 for (const auto& p : pairs) {
83 0 0 close_messages.insert({p.first, p.second});
89 0 0 s << cc.code << ": " << cc.msg ? cc.msg : close_message(cc.code);
93 18 0 }}}
18 0 }}}