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

Function TEST_F

cpp/src/gandiva/function_registry_test.cc:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40};
41
42TEST_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
51TEST_F(TestFunctionRegistry, TestNotFound) {
52 FunctionSignature addX_i32_i32("addX", {arrow::int32(), arrow::int32()},

Callers

nothing calls this directly

Calls 13

ContainsFunction · 0.85
GetTestExternalFunctionFunction · 0.85
FunctionSignatureClass · 0.85
LookupSignatureMethod · 0.80
strMethod · 0.80
sizeMethod · 0.45
ToStringMethod · 0.45
countMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected