MCPcopy Create free account
hub / github.com/apache/arrow / TEST_P

Function TEST_P

cpp/src/arrow/engine/substrait/ext_test.cc:129–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 : public testing::TestWithParam<ExtensionIdRegistryParams> {};
128
129TEST_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
146TEST_P(ExtensionIdRegistryTest, ReregisterTypes) {
147 auto provider = std::get<0>(GetParam());

Callers

nothing calls this directly

Calls 12

CanRegisterTypeMethod · 0.80
getMethod · 0.45
GetTypeMethod · 0.45
valueMethod · 0.45
RegisterTypeMethod · 0.45

Tested by

no test coverage detected