ValidateRle on 'num_vals' values with width 'bit_width'. If 'value' != -1, that value is used, otherwise alternating values are used.
| 853 | // ValidateRle on 'num_vals' values with width 'bit_width'. If 'value' != -1, that value |
| 854 | // is used, otherwise alternating values are used. |
| 855 | void TestRleValues(int bit_width, int num_vals, int value = -1) { |
| 856 | const uint64_t mod = (bit_width == 64) ? 1 : 1LL << bit_width; |
| 857 | std::vector<int> values; |
| 858 | for (int v = 0; v < num_vals; ++v) { |
| 859 | values.push_back((value != -1) ? value : static_cast<int>(v % mod)); |
| 860 | } |
| 861 | ValidateRleBitPacked(values, bit_width, NULL, -1); |
| 862 | } |
| 863 | |
| 864 | TEST(RleBitPacked, TestValues) { |
| 865 | for (int width = 1; width <= MAX_WIDTH; ++width) { |
no test coverage detected