MCPcopy Create free account
hub / github.com/apache/orc / generateBoolData

Function generateBoolData

c++/test/TestByteRLEEncoder.cc:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void generateBoolData(uint64_t numValues, char* data, uint64_t numNulls = 0,
53 char* notNull = nullptr) {
54 generateNotNull(numValues, numNulls, notNull);
55 for (uint64_t i = 0; i < numValues; ++i) {
56 data[i] = static_cast<char>(std::rand() % 2);
57 }
58 }
59
60 void decodeAndVerify(const MemoryOutputStream& memStream, char* data, uint64_t numValues,
61 char* notNull) {

Callers 1

TESTFunction · 0.85

Calls 1

generateNotNullFunction · 0.85

Tested by

no test coverage detected