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

Method SetUp

extensions/regex_ext_test.cc:457–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455class RegexExtCheckerLibraryTest : public TestWithParam<RegexCheckerTestCase> {
456 public:
457 void SetUp() override {
458 // Arrange: Configure the compiler.
459 // Add the regex checker library to the compiler builder.
460 ASSERT_OK_AND_ASSIGN(std::unique_ptr<CompilerBuilder> compiler_builder,
461 NewCompilerBuilder(descriptor_pool_));
462 ASSERT_THAT(compiler_builder->AddLibrary(StandardCheckerLibrary()), IsOk());
463 ASSERT_THAT(compiler_builder->AddLibrary(RegexExtCompilerLibrary()),
464 IsOk());
465 ASSERT_OK_AND_ASSIGN(compiler_, std::move(*compiler_builder).Build());
466 }
467
468 const google::protobuf::DescriptorPool* descriptor_pool_ =
469 internal::GetTestingDescriptorPool();

Callers

nothing calls this directly

Calls 6

StandardCheckerLibraryFunction · 0.85
RegexExtCompilerLibraryFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.50
NewCompilerBuilderFunction · 0.50
AddLibraryMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected