MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / FormatWordList

Function FormatWordList

test/common/gtest/gtest.cpp:3603–3615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3601}
3602
3603static std::string FormatWordList(const std::vector<std::string>& words) {
3604 Message word_list;
3605 for (size_t i = 0; i < words.size(); ++i) {
3606 if (i > 0 && words.size() > 2) {
3607 word_list << ", ";
3608 }
3609 if (i == words.size() - 1) {
3610 word_list << "and ";
3611 }
3612 word_list << "'" << words[i] << "'";
3613 }
3614 return word_list.GetString();
3615}
3616
3617bool ValidateTestPropertyName(const std::string& property_name,
3618 const std::vector<std::string>& reserved_names) {

Callers 1

ValidateTestPropertyNameFunction · 0.85

Calls 2

GetStringMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected