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

Method SetUp

extensions/regex_functions_test.cc:242–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 : public ::testing::TestWithParam<RegexCheckerTestCase> {
241 public:
242 void SetUp() override {
243 // Arrange: Configure the compiler.
244 // Add the regex checker library to the compiler builder.
245 ASSERT_OK_AND_ASSIGN(std::unique_ptr<CompilerBuilder> compiler_builder,
246 NewCompilerBuilder(descriptor_pool_));
247 ASSERT_THAT(compiler_builder->AddLibrary(StandardCheckerLibrary()), IsOk());
248 ASSERT_THAT(compiler_builder->AddLibrary(RegexCheckerLibrary()), IsOk());
249 ASSERT_OK_AND_ASSIGN(compiler_, std::move(*compiler_builder).Build());
250 }
251
252 const google::protobuf::DescriptorPool* descriptor_pool_ =
253 internal::GetTestingDescriptorPool();

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected