| 40 | }; |
| 41 | |
| 42 | TEST_F(TestFunctionRegistry, TestFound) { |
| 43 | FunctionSignature add_i32_i32("add", {arrow::int32(), arrow::int32()}, arrow::int32()); |
| 44 | |
| 45 | const NativeFunction* function = registry_->LookupSignature(add_i32_i32); |
| 46 | EXPECT_NE(function, nullptr); |
| 47 | EXPECT_THAT(function->signatures(), testing::Contains(add_i32_i32)); |
| 48 | EXPECT_EQ(function->pc_name(), "add_int32_int32"); |
| 49 | } |
| 50 | |
| 51 | TEST_F(TestFunctionRegistry, TestNotFound) { |
| 52 | FunctionSignature addX_i32_i32("addX", {arrow::int32(), arrow::int32()}, |
nothing calls this directly
no test coverage detected