Verify all functions in registry are exported.
| 36 | |
| 37 | // Verify all functions in registry are exported. |
| 38 | TEST_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. |
| 55 | TEST_F(TestExpressionRegistry, VerifyDataTypes) { |
nothing calls this directly
no test coverage detected