MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / RegisterBuiltinFunctions

Function RegisterBuiltinFunctions

eval/public/builtin_func_registrar.cc:36–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace google::api::expr::runtime {
35
36absl::Status RegisterBuiltinFunctions(CelFunctionRegistry* registry,
37 const InterpreterOptions& options) {
38 cel::FunctionRegistry& modern_registry = registry->InternalGetRegistry();
39 cel::RuntimeOptions runtime_options = ConvertToRuntimeOptions(options);
40
41 CEL_RETURN_IF_ERROR(
42 cel::RegisterLogicalFunctions(modern_registry, runtime_options));
43 CEL_RETURN_IF_ERROR(
44 cel::RegisterComparisonFunctions(modern_registry, runtime_options));
45 CEL_RETURN_IF_ERROR(
46 cel::RegisterContainerFunctions(modern_registry, runtime_options));
47 CEL_RETURN_IF_ERROR(cel::RegisterContainerMembershipFunctions(
48 modern_registry, runtime_options));
49 CEL_RETURN_IF_ERROR(
50 cel::RegisterTypeConversionFunctions(modern_registry, runtime_options));
51 CEL_RETURN_IF_ERROR(
52 cel::RegisterArithmeticFunctions(modern_registry, runtime_options));
53 CEL_RETURN_IF_ERROR(
54 cel::RegisterTimeFunctions(modern_registry, runtime_options));
55 CEL_RETURN_IF_ERROR(
56 cel::RegisterStringFunctions(modern_registry, runtime_options));
57 CEL_RETURN_IF_ERROR(
58 cel::RegisterRegexFunctions(modern_registry, runtime_options));
59 CEL_RETURN_IF_ERROR(
60 cel::RegisterEqualityFunctions(modern_registry, runtime_options));
61
62 return absl::OkStatus();
63}
64
65} // namespace google::api::expr::runtime

Callers 15

TESTFunction · 0.85
ExpectResultFunction · 0.85
SetUpMethod · 0.85
PerformRunMethod · 0.85
SetUpMethod · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
SetUpMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
SetupBuilderMethod · 0.85
TESTFunction · 0.85

Tested by 15

TESTFunction · 0.68
ExpectResultFunction · 0.68
SetUpMethod · 0.68
PerformRunMethod · 0.68
SetUpMethod · 0.68
TEST_FFunction · 0.68
TEST_PFunction · 0.68
SetUpMethod · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
SetupBuilderMethod · 0.68
TESTFunction · 0.68