| 3286 | } |
| 3287 | |
| 3288 | static 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 | |
| 3302 | bool ValidateTestPropertyName(const std::string& property_name, |
| 3303 | const std::vector<std::string>& reserved_names) { |
no test coverage detected