Construct a string of the specified length made out of the supplied partial string.
| 16 | // Construct a string of the specified length made out of the supplied |
| 17 | // partial string. |
| 18 | static std::string BigString(const std::string& partial_string, size_t n) { |
| 19 | std::string result; |
| 20 | while (result.size() < n) { |
| 21 | result.append(partial_string); |
| 22 | } |
| 23 | result.resize(n); |
| 24 | return result; |
| 25 | } |
| 26 | |
| 27 | // Construct a string from a number |
| 28 | static std::string NumberString(int n) { |
no test coverage detected