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

Function NextLength

src/leveldb/util/bloom_test.cc:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static int NextLength(int length) {
98 if (length < 10) {
99 length += 1;
100 } else if (length < 100) {
101 length += 10;
102 } else if (length < 1000) {
103 length += 100;
104 } else {
105 length += 1000;
106 }
107 return length;
108}
109
110TEST(BloomTest, VaryingLengths) {
111 char buffer[sizeof(int)];

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected