MCPcopy Create free account
hub / github.com/apache/singa / FormatWordList

Function FormatWordList

test/gtest/gtest-all.cc:3288–3300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3286}
3287
3288static std::string FormatWordList(const std::vector<std::string>& words) {
3289 Message word_list;
3290 for (size_t i = 0; i < words.size(); ++i) {
3291 if (i > 0 && words.size() > 2) {
3292 word_list << ", ";
3293 }
3294 if (i == words.size() - 1) {
3295 word_list << "and ";
3296 }
3297 word_list << "'" << words[i] << "'";
3298 }
3299 return word_list.GetString();
3300}
3301
3302bool ValidateTestPropertyName(const std::string& property_name,
3303 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