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

Function ConfigureRuntime

codelab/exercise10.cc:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61absl::StatusOr<std::unique_ptr<cel::Runtime>> ConfigureRuntime() {
62 cel::RuntimeOptions runtime_options;
63 // Note: this is needed to resolve net.Address as a `type` constant.
64 runtime_options.enable_qualified_type_identifiers = true;
65 absl::StatusOr<cel::RuntimeBuilder> runtime_builder =
66 cel::CreateStandardRuntimeBuilder(cel::GetMinimalDescriptorPool(),
67 runtime_options);
68 // ===========================================================================
69 // Codelab: Update runtime builder with functions from network_functions.h
70 // ===========================================================================
71 return std::move(runtime_builder).value().Build();
72}
73
74} // namespace
75

Callers 2

TEST_PFunction · 0.50

Calls 3

BuildMethod · 0.45
valueMethod · 0.45

Tested by 1

TEST_PFunction · 0.40