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

Function StdLibCompiler

validator/comprehension_nesting_validator_test.cc:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33using ::testing::HasSubstr;
34
35absl::StatusOr<std::unique_ptr<Compiler>> StdLibCompiler() {
36 CEL_ASSIGN_OR_RETURN(
37 auto builder,
38 NewCompilerBuilder(internal::GetSharedTestingDescriptorPool()));
39 CEL_RETURN_IF_ERROR(builder->AddLibrary(StandardCompilerLibrary()));
40 CEL_RETURN_IF_ERROR(
41 builder->AddLibrary(cel::extensions::BindingsCompilerLibrary()));
42 return builder->Build();
43}
44
45struct TestCase {
46 std::string expression;

Callers

nothing calls this directly

Calls 4

StandardCompilerLibraryFunction · 0.85
BindingsCompilerLibraryFunction · 0.85
AddLibraryMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected