| 127 | : public testing::TestWithParam<ExtensionIdRegistryParams> {}; |
| 128 | |
| 129 | TEST_P(ExtensionIdRegistryTest, GetTypes) { |
| 130 | auto provider = std::get<0>(GetParam()); |
| 131 | auto registry = provider->get(); |
| 132 | |
| 133 | for (TypeName e : kTypeNames) { |
| 134 | auto id = Id{kArrowExtTypesUri, e.name}; |
| 135 | for (auto typerec_opt : {registry->GetType(id), registry->GetType(*e.type)}) { |
| 136 | ASSERT_TRUE(typerec_opt); |
| 137 | auto typerec = typerec_opt.value(); |
| 138 | ASSERT_EQ(id, typerec.id); |
| 139 | ASSERT_EQ(*e.type, *typerec.type); |
| 140 | } |
| 141 | } |
| 142 | ASSERT_FALSE(registry->GetType(kNonExistentId)); |
| 143 | ASSERT_FALSE(registry->GetType(*kNonExistentTypeName.type)); |
| 144 | } |
| 145 | |
| 146 | TEST_P(ExtensionIdRegistryTest, ReregisterTypes) { |
| 147 | auto provider = std::get<0>(GetParam()); |
nothing calls this directly
no test coverage detected