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

Function CreateRegexExtCompiler

extensions/regex_ext_test.cc:502–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500 ValuesIn(createRegexCheckerParams()));
501
502absl::StatusOr<std::unique_ptr<Compiler>> CreateRegexExtCompiler() {
503 CEL_ASSIGN_OR_RETURN(
504 auto builder, NewCompilerBuilder(internal::GetTestingDescriptorPool()));
505 CEL_RETURN_IF_ERROR(builder->AddLibrary(StandardCheckerLibrary()));
506 CEL_RETURN_IF_ERROR(builder->AddLibrary(RegexExtCompilerLibrary()));
507 return std::move(*builder).Build();
508}
509
510class RegexExtValidatorTest : public TestWithParam<RegexCheckerTestCase> {};
511

Callers

nothing calls this directly

Calls 4

StandardCheckerLibraryFunction · 0.85
RegexExtCompilerLibraryFunction · 0.85
AddLibraryMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected