MCPcopy Create free account
hub / github.com/apache/brpc / GetCompleteCommand

Function GetCompleteCommand

test/brpc_redis_unittest.cpp:559–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559std::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
571TEST_F(RedisTest, command_parser) {

Callers 1

TEST_FFunction · 0.85

Calls 4

sizeMethod · 0.45
push_backMethod · 0.45
appendMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected