Sanity check that printVector doesn't fail or crash.
| 42 | |
| 43 | // Sanity check that printVector doesn't fail or crash. |
| 44 | TEST_F(VectorPrinterTest, basic) { |
| 45 | VectorFuzzer::Options options; |
| 46 | options.vectorSize = 100; |
| 47 | options.nullRatio = 0.1; |
| 48 | |
| 49 | VectorFuzzer fuzzer(options, pool()); |
| 50 | SelectivityVector rows(options.vectorSize); |
| 51 | for (auto i = 0; i < rows.size(); i += 2) { |
| 52 | rows.setValid(i, true); |
| 53 | } |
| 54 | rows.updateBounds(); |
| 55 | |
| 56 | for (auto i = 0; i < 50; ++i) { |
| 57 | auto data = fuzzer.fuzz(fuzzer.randType()); |
| 58 | ASSERT_NO_THROW(printVector(*data)); |
| 59 | |
| 60 | ASSERT_NO_THROW(printVector(*data, 0, 1'000)); |
| 61 | ASSERT_NO_THROW(printVector(*data, 34, 10)); |
| 62 | |
| 63 | ASSERT_NO_THROW(printVector(*data, rows)); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | TEST_F(VectorPrinterTest, map) { |
| 68 | auto data = makeMapVector<int64_t, int64_t>({ |
nothing calls this directly
no test coverage detected