Test all the supported options
| 350 | |
| 351 | // Test all the supported options |
| 352 | TEST(TypeSpecificTests, BoolTrueProbability) { |
| 353 | auto field = |
| 354 | arrow::field("bool", boolean(), key_value_metadata({{"true_probability", "1.0"}})); |
| 355 | auto base_array = GenerateArray(*field, kExpectedLength, 0xDEADBEEF); |
| 356 | AssertTypeEqual(field->type(), base_array->type()); |
| 357 | auto array = internal::checked_pointer_cast<BooleanArray>(base_array); |
| 358 | ASSERT_OK(array->ValidateFull()); |
| 359 | for (const auto& value : *array) { |
| 360 | ASSERT_TRUE(!value.has_value() || *value); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | TEST(TypeSpecificTests, DictionaryValues) { |
| 365 | auto field = arrow::field("dictionary", dictionary(int8(), utf8()), |
nothing calls this directly
no test coverage detected