| 28 | namespace gandiva { |
| 29 | |
| 30 | class 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 | |
| 42 | TEST_F(TestFunctionRegistry, TestFound) { |
| 43 | FunctionSignature add_i32_i32("add", {arrow::int32(), arrow::int32()}, arrow::int32()); |
nothing calls this directly
no test coverage detected