| 72 | } |
| 73 | |
| 74 | bool HasList(const DataType& type) { |
| 75 | if (is_var_length_list_like(type.id())) { |
| 76 | return true; |
| 77 | } |
| 78 | for (const auto& child : type.fields()) { |
| 79 | if (HasList(*child->type())) { |
| 80 | return true; |
| 81 | } |
| 82 | } |
| 83 | if (type.id() == Type::DICTIONARY) { |
| 84 | if (HasList(*checked_cast<const DictionaryType&>(type).value_type())) { |
| 85 | return true; |
| 86 | } |
| 87 | } |
| 88 | return false; |
| 89 | } |
| 90 | }; |
| 91 | |
| 92 | TEST_P(RandomArrayTest, GenerateArray) { |
nothing calls this directly
no test coverage detected