MCPcopy Create free account
hub / github.com/ElementsProject/elements / BigString

Function BigString

src/leveldb/db/log_test.cc:18–25  ·  view source on GitHub ↗

Construct a string of the specified length made out of the supplied partial string.

Source from the content-addressed store, hash-verified

16// Construct a string of the specified length made out of the supplied
17// partial string.
18static 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
28static std::string NumberString(int n) {

Callers 2

RandomSkewedStringFunction · 0.85
TESTFunction · 0.85

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected