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

Method SetUp

extensions/lists_functions_test.cc:295–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 : public ::testing::TestWithParam<ListCheckerTestCase> {
294 public:
295 void SetUp() override {
296 // Arrange: Configure the compiler.
297 // Add the lists checker library to the compiler builder.
298 ASSERT_OK_AND_ASSIGN(
299 std::unique_ptr<CompilerBuilder> compiler_builder,
300 NewCompilerBuilder(internal::GetTestingDescriptorPool()));
301 ASSERT_THAT(compiler_builder->AddLibrary(StandardCompilerLibrary()),
302 IsOk());
303 ASSERT_THAT(compiler_builder->AddLibrary(ListsCompilerLibrary()), IsOk());
304 compiler_builder->GetCheckerBuilder().set_container(
305 "cel.expr.conformance.proto3");
306 ASSERT_OK_AND_ASSIGN(compiler_, std::move(*compiler_builder).Build());
307 }
308
309 std::unique_ptr<Compiler> compiler_;
310};

Callers

nothing calls this directly

Calls 7

StandardCompilerLibraryFunction · 0.85
ListsCompilerLibraryFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.50
NewCompilerBuilderFunction · 0.50
AddLibraryMethod · 0.45
set_containerMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected