MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / StringSplit

Function StringSplit

core/tests/gtest_db_func.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31char** my_argv;
32
33std::vector<std::string> StringSplit(std::string str, char split) {
34 std::vector<std::string> strs;
35 std::istringstream f(str);
36 std::string s;
37 while (getline(f, s, split)) {
38 strs.push_back(s);
39 }
40 return strs;
41}
42
43TEST_F(KVDBTest, AbstractKVDB_Func_Test) {
44 AbsKVDBPtr kvdb = std::make_shared<RocksKVDB>();

Callers 1

TEST_FFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected