| 557 | } |
| 558 | |
| 559 | std::string GetCompleteCommand(const std::vector<butil::StringPiece>& commands) { |
| 560 | std::string res; |
| 561 | for (int i = 0; i < (int)commands.size(); ++i) { |
| 562 | if (i != 0) { |
| 563 | res.push_back(' '); |
| 564 | } |
| 565 | res.append(commands[i].data(), commands[i].size()); |
| 566 | } |
| 567 | return res; |
| 568 | } |
| 569 | |
| 570 | |
| 571 | TEST_F(RedisTest, command_parser) { |