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

Function TEST

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

Source from the content-addressed store, hash-verified

214 "nested")));
215
216TEST(ExtensionIdRegistryTest, GetSupportedSubstraitFunctions) {
217 ExtensionIdRegistry* default_registry = default_extension_id_registry();
218 std::vector<std::string> supported_functions =
219 default_registry->GetSupportedSubstraitFunctions();
220 std::size_t num_functions = supported_functions.size();
221 ASSERT_GT(num_functions, 0);
222
223 std::shared_ptr<ExtensionIdRegistry> nested =
224 nested_extension_id_registry(default_registry);
225 ASSERT_OK(nested->AddSubstraitCallToArrow(kNonExistentId, "some_function"));
226
227 std::size_t num_nested_functions = nested->GetSupportedSubstraitFunctions().size();
228 ASSERT_EQ(num_functions + 1, num_nested_functions);
229}
230
231TEST(ExtensionIdRegistryTest, RegisterTempTypes) {
232 auto default_registry = default_extension_id_registry();

Callers

nothing calls this directly

Calls 15

MakeExtensionIdRegistryFunction · 0.85
field_refFunction · 0.85
CanRegisterTypeMethod · 0.80
SetValueArgMethod · 0.80
callMethod · 0.80

Tested by

no test coverage detected