MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / FormatWordList

Function FormatWordList

tests/gtest/gtest-all.cc:3641–3653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3639}
3640
3641static std::string FormatWordList(const std::vector<std::string>& words) {
3642 Message word_list;
3643 for (size_t i = 0; i < words.size(); ++i) {
3644 if (i > 0 && words.size() > 2) {
3645 word_list << ", ";
3646 }
3647 if (i == words.size() - 1) {
3648 word_list << "and ";
3649 }
3650 word_list << "'" << words[i] << "'";
3651 }
3652 return word_list.GetString();
3653}
3654
3655static bool ValidateTestPropertyName(
3656 const std::string& property_name,

Callers 1

ValidateTestPropertyNameFunction · 0.85

Calls 2

GetStringMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected