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

Function CreateCompiler

validator/ast_depth_validator_test.cc:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace {
31
32std::unique_ptr<Compiler> CreateCompiler() {
33 auto builder = NewCompilerBuilder(internal::GetSharedTestingDescriptorPool());
34 ABSL_CHECK_OK(builder);
35 ABSL_CHECK_OK((*builder)->AddLibrary(StandardCompilerLibrary()));
36 auto compiler = (*builder)->Build();
37 ABSL_CHECK_OK(compiler);
38 return *std::move(compiler);
39}
40
41TEST(AstDepthValidatorTest, Basic) {
42 auto compiler = CreateCompiler();

Callers 1

TESTFunction · 0.70

Calls 4

StandardCompilerLibraryFunction · 0.85
NewCompilerBuilderFunction · 0.50
AddLibraryMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected