| 393 | } |
| 394 | |
| 395 | TEST(TestDictionaryBuilderAdHoc, AppendIndicesUpdateCapacity) { |
| 396 | DictionaryBuilder<Int32Type> builder; |
| 397 | Dictionary32Builder<Int32Type> builder32; |
| 398 | |
| 399 | std::vector<int32_t> indices_i32 = {0, 1, 2}; |
| 400 | std::vector<int64_t> indices_i64 = {0, 1, 2}; |
| 401 | |
| 402 | ASSERT_OK(builder.AppendIndices(indices_i64.data(), 3)); |
| 403 | ASSERT_OK(builder32.AppendIndices(indices_i32.data(), 3)); |
| 404 | |
| 405 | ASSERT_LT(0, builder.capacity()); |
| 406 | ASSERT_LT(0, builder32.capacity()); |
| 407 | } |
| 408 | |
| 409 | TEST(TestStringDictionaryBuilder, Basic) { |
| 410 | // Build the dictionary Array |
nothing calls this directly
no test coverage detected