MCPcopy Create free account
hub / github.com/MikeMirzayanov/testlib / stringsToString

Function stringsToString

checkers/casewcmp.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45string stringsToString(const vector<string> &a) {
46 if (a.empty())
47 return "\"\" [size=0]";
48
49 string elems;
50 for (const auto& token: a)
51 elems += token + " ";
52
53 return format("\"%s\" [size=%u]", compress(trim(elems)).c_str(), (unsigned int) (a.size()));
54}
55
56int main(int argc, char *argv[]) {
57 setName("Tokens checker with testcase-support");

Callers 1

mainFunction · 0.85

Calls 3

formatFunction · 0.50
compressFunction · 0.50
trimFunction · 0.50

Tested by

no test coverage detected