MCPcopy Create free account
hub / github.com/apache/impala / GetLengths

Function GetLengths

be/src/util/bit-packing-test.cc:160–168  ·  view source on GitHub ↗

Test various odd input lengths to exercise boundary cases for full and partial batches of 32.

Source from the content-addressed store, hash-verified

158// Test various odd input lengths to exercise boundary cases for full and partial
159// batches of 32.
160std::vector<int> GetLengths() {
161 vector<int> lengths{NUM_IN_VALUES, NUM_IN_VALUES - 1, NUM_IN_VALUES - 16,
162 NUM_IN_VALUES - 19, NUM_IN_VALUES - 31};
163 for (int i = 0; i < 32; ++i) {
164 lengths.push_back(i);
165 }
166
167 return lengths;
168}
169
170template <typename UINT_T>
171void RandomUnpackTest() {

Callers 3

RandomUnpackTestFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected