Construct a string from a number
| 26 | |
| 27 | // Construct a string from a number |
| 28 | static std::string NumberString(int n) { |
| 29 | char buf[50]; |
| 30 | snprintf(buf, sizeof(buf), "%d.", n); |
| 31 | return std::string(buf); |
| 32 | } |
| 33 | |
| 34 | // Return a skewed potentially long string |
| 35 | static std::string RandomSkewedString(int i, Random* rnd) { |
no outgoing calls
no test coverage detected