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

Function TEST_F

cpp/src/gandiva/expression_registry_test.cc:38–52  ·  view source on GitHub ↗

Verify all functions in registry are exported.

Source from the content-addressed store, hash-verified

36
37// Verify all functions in registry are exported.
38TEST_F(TestExpressionRegistry, VerifySupportedFunctions) {
39 std::vector<FunctionSignature> functions;
40 ExpressionRegistry expr_registry;
41 for (auto iter = expr_registry.function_signature_begin();
42 iter != expr_registry.function_signature_end(); iter++) {
43 functions.push_back((*iter));
44 }
45 for (auto& iter : *registry_) {
46 for (auto& func_iter : iter.signatures()) {
47 auto element = std::find(functions.begin(), functions.end(), func_iter);
48 EXPECT_NE(element, functions.end()) << "function signature " << func_iter.ToString()
49 << " missing in supported functions.\n";
50 }
51 }
52}
53
54// Verify all types are supported.
55TEST_F(TestExpressionRegistry, VerifyDataTypes) {

Callers

nothing calls this directly

Calls 6

push_backMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected