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

Class TestFunctionRegistry

cpp/src/gandiva/function_registry_test.cc:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace gandiva {
29
30class TestFunctionRegistry : public ::testing::Test {
31 protected:
32 std::shared_ptr<FunctionRegistry> registry_ = gandiva::default_function_registry();
33
34 static std::unique_ptr<FunctionRegistry> MakeFunctionRegistryWithExternalFunction() {
35 auto registry = std::make_unique<FunctionRegistry>();
36 ARROW_EXPECT_OK(
37 registry->Register({GetTestExternalFunction()}, GetTestFunctionLLVMIRPath()));
38 return registry;
39 }
40};
41
42TEST_F(TestFunctionRegistry, TestFound) {
43 FunctionSignature add_i32_i32("add", {arrow::int32(), arrow::int32()}, arrow::int32());

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected